Revision 9865a93c src/cloud/occi/lib/ImagePoolOCCI.rb

View differences:

src/cloud/occi/lib/ImagePoolOCCI.rb
26 26
            <DISK href="<%= base_url%>/storage/<%= image[:id] %>"/><%  
27 27
            end  %>
28 28
        </STORAGE>
29
    }.gsub(/^        /, '')
29
    }
30 30
        
31 31
    def initialize(user_id)
32 32
        @images=Image.filter(:owner => user_id)     
......
34 34
    
35 35
    def to_occi(base_url)
36 36
        occi = ERB.new(OCCI_IMAGE_POOL)
37
        return occi.result(binding)       
37
        return occi.result(binding).gsub(/\n\s*/,'')
38 38
    end
39 39
end
40 40

  

Also available in: Unified diff