libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r927482 - /incubator/libcloud/trunk/libcloud/drivers/linode.py
Date Thu, 25 Mar 2010 16:28:21 GMT
Author: jed
Date: Thu Mar 25 16:28:20 2010
New Revision: 927482

URL: http://svn.apache.org/viewvc?rev=927482&view=rev
Log:
Linode: Don't check length of root password if it's None

Signed-off-by: Jed Smith <jed@apache.org>

Modified:
    incubator/libcloud/trunk/libcloud/drivers/linode.py

Modified: incubator/libcloud/trunk/libcloud/drivers/linode.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/linode.py?rev=927482&r1=927481&r2=927482&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/linode.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/linode.py Thu Mar 25 16:28:20 2010
@@ -239,7 +239,7 @@ class LinodeNodeDriver(NodeDriver):
 
         if not ssh and not root:
             raise LinodeException(0xFB, "Need SSH key or root password")
-        if len(root) < 6:
+        if not root is None and len(root) < 6:
             raise LinodeException(0xFB, "Root password is too short")
 
         # Swap size



Mime
View raw message