You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/03/01 01:29:35 UTC
svn commit: r917333 - /incubator/libcloud/trunk/libcloud/base.py
Author: pquerna
Date: Mon Mar 1 00:29:35 2010
New Revision: 917333
URL: http://svn.apache.org/viewvc?rev=917333&view=rev
Log:
Call the deploy kwarg with the connected ssh client instance, rather than doing any of this inline
Modified:
incubator/libcloud/trunk/libcloud/base.py
Modified: incubator/libcloud/trunk/libcloud/base.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/base.py?rev=917333&r1=917332&r2=917333&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/base.py (original)
+++ incubator/libcloud/trunk/libcloud/base.py Mon Mar 1 00:29:35 2010
@@ -647,12 +647,5 @@
time.sleep(10)
if laste is not None:
raise e
- #print "connected!"
- sftp = client.open_sftp()
- sftp.mkdir(".ssh")
- sftp.chdir(".ssh")
- ak = sftp.file("authorized_keys", mode='w')
- ak.write(kwargs['pubkey'])
- ak.close()
- sftp.close()
- return node
+
+ return kwargs["deploy"](node, client)