You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/03/15 17:14:16 UTC
svn commit: r1081831 -
/incubator/libcloud/trunk/libcloud/compute/drivers/vpsnet.py
Author: tomaz
Date: Tue Mar 15 16:14:16 2011
New Revision: 1081831
URL: http://svn.apache.org/viewvc?rev=1081831&view=rev
Log:
Oops, fix a typo.
Modified:
incubator/libcloud/trunk/libcloud/compute/drivers/vpsnet.py
Modified: incubator/libcloud/trunk/libcloud/compute/drivers/vpsnet.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/compute/drivers/vpsnet.py?rev=1081831&r1=1081830&r2=1081831&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/compute/drivers/vpsnet.py (original)
+++ incubator/libcloud/trunk/libcloud/compute/drivers/vpsnet.py Tue Mar 15 16:14:16 2011
@@ -126,7 +126,7 @@ class VPSNetNodeDriver(NodeDriver):
return PRICE_PER_NODE[keys[-1]]
for i in range(0,len(keys)):
- if int(keys[i]) <= num < (keys[i+1]):
+ if int(keys[i]) <= num < int(keys[i+1]):
return PRICE_PER_NODE[keys[i]]
def create_node(self, name, image, size, **kwargs):