You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2010/07/09 01:23:31 UTC

svn commit: r962110 - /incubator/deltacloud/trunk/framework/lib/converters/xml_converter.rb

Author: lutter
Date: Thu Jul  8 23:23:31 2010
New Revision: 962110

URL: http://svn.apache.org/viewvc?rev=962110&view=rev
Log:
Add name to the xml converter for image

Modified:
    incubator/deltacloud/trunk/framework/lib/converters/xml_converter.rb

Modified: incubator/deltacloud/trunk/framework/lib/converters/xml_converter.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/lib/converters/xml_converter.rb?rev=962110&r1=962109&r2=962110&view=diff
==============================================================================
--- incubator/deltacloud/trunk/framework/lib/converters/xml_converter.rb (original)
+++ incubator/deltacloud/trunk/framework/lib/converters/xml_converter.rb Thu Jul  8 23:23:31 2010
@@ -24,7 +24,7 @@ module Converters
     def initialize(link_builder, type)
       @link_builder = link_builder
       @type         = type
-    end 
+    end
 
     def convert(obj, builder=nil)
       builder ||= Builder::XmlMarkup.new( :indent=>2 )
@@ -47,6 +47,7 @@ module Converters
             builder.image( :href=>@link_builder.send( :image_url, obj.id ) ) {
               builder.id( obj.id )
               builder.owner_id( obj.owner_id )
+              builder.name( obj.name )
               builder.description( obj.description )
               builder.architecture( obj.architecture )
             }
@@ -79,12 +80,12 @@ module Converters
               builder.__send__( 'public-addresses' ) {
                 obj.public_addresses.each do |address|
                   builder.address( address )
-                end 
+                end
               }
               builder.__send__( 'private-addresses' ) {
                 obj.private_addresses.each do |address|
                   builder.address( address )
-                end 
+                end
               }
             }
           when StorageVolume