libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1142551 - /libcloud/trunk/libcloud/compute/deployment.py
Date Mon, 04 Jul 2011 05:24:42 GMT
Author: tomaz
Date: Mon Jul  4 05:24:41 2011
New Revision: 1142551

URL: http://svn.apache.org/viewvc?rev=1142551&view=rev
Log:
Fix chmod argument value which is pased to the sftpclient.put method (should be
octal).

Patch contributed by John Carr and is part of GITHUB-17.

Modified:
    libcloud/trunk/libcloud/compute/deployment.py

Modified: libcloud/trunk/libcloud/compute/deployment.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/deployment.py?rev=1142551&r1=1142550&r2=1142551&view=diff
==============================================================================
--- libcloud/trunk/libcloud/compute/deployment.py (original)
+++ libcloud/trunk/libcloud/compute/deployment.py Mon Jul  4 05:24:41 2011
@@ -106,7 +106,7 @@ class ScriptDeployment(Deployment):
 
         See also L{Deployment.run}
         """
-        client.put(path=self.name, chmod=755, contents=self.script)
+        client.put(path=self.name, chmod=0755, contents=self.script)
         self.stdout, self.stderr, self.exit_status = client.run(self.name)
         if self.delete:
             client.delete(self.name)



Mime
View raw message