You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by je...@apache.org on 2010/03/25 17:28:21 UTC

svn commit: r927482 - /incubator/libcloud/trunk/libcloud/drivers/linode.py

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 <je...@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