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

View differences:

src/cloud/occi/lib/VirtualNetworkOCCI.rb
27 27
            <ADDRESS><%= vn_hash['VNET']['TEMPLATE']['NETWORK_ADDRESS'].strip %></ADDRESS>
28 28
            <SIZE><%= vn_hash['VNET']['TEMPLATE']['NETWORK_SIZE'].strip %></SIZE>
29 29
        </NETWORK>
30
    }.gsub(/^        /, '')
30
    }
31 31

  
32 32
    ONE_NETWORK = %q{
33 33
        NAME            = <%= network_hash['NAME'] %>
......
42 42
        vn_hash = to_hash
43 43

  
44 44
        occi = ERB.new(OCCI_NETWORK)
45
        return occi.result(binding)
45
        return occi.result(binding).gsub(/\n\s*/,'')
46 46
    end
47 47
    
48 48
    def to_one_template(network_hash, bridge)

Also available in: Unified diff