You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/05/04 23:39:22 UTC

svn commit: r941055 - /incubator/libcloud/trunk/libcloud/base.py

Author: pquerna
Date: Tue May  4 21:39:21 2010
New Revision: 941055

URL: http://svn.apache.org/viewvc?rev=941055&view=rev
Log:
Improve handling of args that might be '' instead of None

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=941055&r1=941054&r2=941055&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/base.py (original)
+++ incubator/libcloud/trunk/libcloud/base.py Tue May  4 21:39:21 2010
@@ -506,15 +506,15 @@ class NodeDriver(object):
         self.secure = secure
         args = [self.key]
 
-        if self.secret:
+        if self.secret != None:
           args.append(self.secret)
 
         args.append(secure)
 
-        if host:
+        if host != None:
           args.append(host)
 
-        if port:
+        if port != None:
           args.append(port)
 
         self.connection = self.connectionCls(*args)