You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2011/09/09 13:54:23 UTC

svn commit: r1167120 - /incubator/deltacloud/trunk/client/lib/deltacloud.rb

Author: mfojtik
Date: Fri Sep  9 11:54:22 2011
New Revision: 1167120

URL: http://svn.apache.org/viewvc?rev=1167120&view=rev
Log:
Fixed wrong FloatProperty handling in client for CPU value in hardware profile (#736734)

Modified:
    incubator/deltacloud/trunk/client/lib/deltacloud.rb

Modified: incubator/deltacloud/trunk/client/lib/deltacloud.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client/lib/deltacloud.rb?rev=1167120&r1=1167119&r2=1167120&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client/lib/deltacloud.rb (original)
+++ incubator/deltacloud/trunk/client/lib/deltacloud.rb Fri Sep  9 11:54:22 2011
@@ -201,9 +201,9 @@ module DeltaCloud
         # Do a HWP property for hardware profile properties
         if attribute.name == 'property'
           if attribute['value'] =~ /^(\d+)$/
-            obj.add_hwp_property!(attribute['name'], attribute, :float) && next
-          else
             obj.add_hwp_property!(attribute['name'], attribute, :integer) && next
+          else
+            obj.add_hwp_property!(attribute['name'], attribute, :float) && next
           end
         end