libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1227610 - /libcloud/trunk/libcloud/compute/drivers/linode.py
Date Thu, 05 Jan 2012 14:35:43 GMT
Author: tomaz
Date: Thu Jan  5 14:35:42 2012
New Revision: 1227610

URL: http://svn.apache.org/viewvc?rev=1227610&view=rev
Log:
Fix a typo in Linode driver. This patch has been contributed by Miguel Jacq
(mig at mig5 dot net) and is part of LIBCLOUD-139.

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

Modified: libcloud/trunk/libcloud/compute/drivers/linode.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/drivers/linode.py?rev=1227610&r1=1227609&r2=1227610&view=diff
==============================================================================
--- libcloud/trunk/libcloud/compute/drivers/linode.py (original)
+++ libcloud/trunk/libcloud/compute/drivers/linode.py Thu Jan  5 14:35:42 2012
@@ -300,7 +300,7 @@ class LinodeNodeDriver(NodeDriver):
 
         # Step 2: linode.disk.createfromdistribution
         if not root:
-            root = u(binascii.hexlifyos.urandom(8).encode('hex'))
+            root = u(binascii.hexlify(os.urandom(8).encode('hex')))
         params = {
             "api_action":       "linode.disk.createfromdistribution",
             "LinodeID":         linode["id"],



Mime
View raw message