You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by rb...@apache.org on 2010/08/06 09:31:38 UTC
svn commit: r982896 - /incubator/libcloud/trunk/libcloud/base.py
Author: rbogorodskiy
Date: Fri Aug 6 07:31:38 2010
New Revision: 982896
URL: http://svn.apache.org/viewvc?rev=982896&view=rev
Log:
For nodes id, set id to None if id is None instead of str(id) which
would be string 'None' in this case. This should affect only some
internal logic of drivers for providers that don't assign id immediately,
e.g. gogrid.
Modified:
incubator/libcloud/trunk/libcloud/base.py
Modified: incubator/libcloud/trunk/libcloud/base.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/base.py?rev=982896&r1=982895&r2=982896&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/base.py (original)
+++ incubator/libcloud/trunk/libcloud/base.py Fri Aug 6 07:31:38 2010
@@ -36,7 +36,7 @@ class Node(object):
def __init__(self, id, name, state, public_ip, private_ip,
driver, extra=None):
- self.id = str(id)
+ self.id = str(id) if id else None
self.name = name
self.state = state
self.public_ip = public_ip