From: Tony Mack Date: Fri, 22 Jun 2012 18:01:37 +0000 (-0400) Subject: fix pubkey_to_user_data(): X-Git-Tag: sfa-2.1-12~38 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=cdb73f82f9e0c9e828c0dbbf5a793d51dbabfffc;p=sfa.git fix pubkey_to_user_data(): --- diff --git a/sfa/openstack/osaggregate.py b/sfa/openstack/osaggregate.py index eceaf3ca..70d3cf27 100644 --- a/sfa/openstack/osaggregate.py +++ b/sfa/openstack/osaggregate.py @@ -28,8 +28,10 @@ def pubkeys_to_user_data(pubkeys): user_data = "#!/bin/bash\n\n" for pubkey in pubkeys: pubkey = pubkey.replace('\n', '') - user_data += " echo %s >> /root/.ssh/authorized_keys" % pubkey + user_data += "echo %s >> /root/.ssh/authorized_keys" % pubkey + user_data += "\n" user_data += "echo >> /root/.ssh/authorized_keys" + user_data += "\n" return user_data def instance_to_sliver(instance, slice_xrn=None):