On 30/03/10 15:19 +0200, [email protected] wrote:
> module ConversionHelper
>
>   def convert_to_xml(type, obj)
>-    if ( [ :flavor, :account, :image, :realm, :instance, :storage_volume, 
>:storage_snapshot ].include?( type ) )
>-      Converters::XMLConverter.new( self, type ).convert(obj)
>+    #if ( [ :account, :image, :realm, :instance, :storage_volume, 
>:storage_snapshot ].include?( type ) )
>+    #  Converters::XMLConverter.new( self, type ).convert(obj)
>+    #end
>+    if [ :flavor, :execute].include?(type)
>+      Converters::NokogiriConverter.new(self, type).convert(obj)
>     end
>   end

This is weird, maybe I commit too early. Code should looks like:

   def convert_to_xml(type, obj)
     if [ :flavor, :realm, :image, :instance, :storage_snapshot, 
:storage_volume, :account ].include?(type)
       Converters::NokogiriConverter.new( self, type ).convert(obj)
     end
   end

Btw. this is code is not executed at all, so it doesn't break this patch 
testing at all.


  - Michal

-- 
--------------------------------------------------------
Michal Fojtik, [email protected], +420 532 294 4307
Ruby / Ruby On Rails Developer
Deltacloud API: http://deltacloud.org
--------------------------------------------------------
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to