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

View differences:

src/cloud/occi/lib/VirtualMachineOCCI.rb
35 35
            <INSTANCE_TYPE><%=template['INSTANCE_TYPE']%></INSTANCE_TYPE><%
36 36
             end %>
37 37
        </COMPUTE>     
38
    }.gsub(/^        /, '')
38
    }
39 39
    
40 40
    
41 41
    # Creates the VMI representation of a Virtual Machine
......
47 47
        template['NIC']=[template['NIC']].flatten if template['NIC']
48 48
    
49 49
        occi = ERB.new(OCCI_VM)
50
        return occi.result(binding)
50
        return occi.result(binding).gsub(/\n\s*/,'')
51 51

  
52 52
    end
53 53
end

Also available in: Unified diff