libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1355598 - /libcloud/trunk/libcloud/compute/drivers/ec2.py
Date Fri, 29 Jun 2012 23:13:39 GMT
Author: tomaz
Date: Fri Jun 29 23:13:38 2012
New Revision: 1355598

URL: http://svn.apache.org/viewvc?rev=1355598&view=rev
Log:
Fix the decode call.

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

Modified: libcloud/trunk/libcloud/compute/drivers/ec2.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/drivers/ec2.py?rev=1355598&r1=1355597&r2=1355598&view=diff
==============================================================================
--- libcloud/trunk/libcloud/compute/drivers/ec2.py (original)
+++ libcloud/trunk/libcloud/compute/drivers/ec2.py Fri Jun 29 23:13:38 2012
@@ -1046,7 +1046,7 @@ class EC2NodeDriver(NodeDriver):
 
         if 'ex_userdata' in kwargs:
             params['UserData'] = base64.b64encode(b(kwargs['ex_userdata'])) \
-                                       .decode('utf8')
+                                       .decode('utf-8')
 
         if 'ex_clienttoken' in kwargs:
             params['ClientToken'] = kwargs['ex_clienttoken']



Mime
View raw message