libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1081426 - /incubator/libcloud/trunk/libcloud/pricing.py
Date Mon, 14 Mar 2011 15:39:49 GMT
Author: tomaz
Date: Mon Mar 14 15:39:49 2011
New Revision: 1081426

URL: http://svn.apache.org/viewvc?rev=1081426&view=rev
Log:
Always cast size price to float

Modified:
    incubator/libcloud/trunk/libcloud/pricing.py

Modified: incubator/libcloud/trunk/libcloud/pricing.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/pricing.py?rev=1081426&r1=1081425&r2=1081426&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/pricing.py (original)
+++ incubator/libcloud/trunk/libcloud/pricing.py Mon Mar 14 15:39:49 2011
@@ -81,7 +81,8 @@ def get_size_price(driver_type, driver_n
     @return C{int} Size price.
     """
     pricing = get_pricing(driver_type=driver_type, driver_name=driver_name)
-    return pricing[size_id]
+    price = float(pricing[size_id])
+    return price
 
 def invalidate_pricing_cache():
     """



Mime
View raw message