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

View differences:

src/cloud/occi/lib/VirtualNetworkPoolOCCI.rb
13 13
                  } 
14 14
              end %>
15 15
        </NETWORKS>       
16
    }.gsub(/^        /, '')
16
    }
17 17
    
18 18
    # Creates the OCCI representation of a Virtual Network
19 19
    def to_occi(base_url)   
20 20
      network_pool_hash=to_hash
21 21
      
22 22
      occi = ERB.new(OCCI_NETWORK_POOL)
23
      return occi.result(binding)
23
      return occi.result(binding).gsub(/\n\s*/,'')
24 24
    end
25 25
end

Also available in: Unified diff