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

View differences:

src/cloud/occi/lib/ImageOCCI.rb
27 27
            <SIZE><%= ((size/1024)/1024).to_s %></SIZE>
28 28
            <URL><%= description %></URL>
29 29
        </DISK>
30
    }.gsub(/^        /, '')
30
    }
31 31

  
32 32

  
33 33
    # Creates the OCCI representation of an Image
34 34
    def to_occi()
35 35
        occi = ERB.new(OCCI_IMAGE)
36
        return occi.result(binding)
36
        return occi.result(binding).gsub(/\n\s*/,'')
37 37
    end
38 38
end

Also available in: Unified diff