]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
adding a newline to auth key data
authortamil <tamil.muthamizhan@inktank.com>
Fri, 14 Jun 2013 00:13:09 +0000 (17:13 -0700)
committerSage Weil <sage@inktank.com>
Wed, 19 Jun 2013 19:45:35 +0000 (12:45 -0700)
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
(cherry picked from commit 0e3038650288a1ecdede6dd298e57ed1fd739a31)

teuthology/task/ssh_keys.py

index 5fbc2e3dab36a9ce34a76230e8d3412ce6abd64d..f9d9664363aaceae13766a6560d84adba200f231 100644 (file)
@@ -110,7 +110,7 @@ def push_keys_to_host(ctx, config, public_key, private_key):
         inner_username, inner_hostname = str(inner_host).split('@')
         # create a 'user@hostname' string using our fake hostname
         fake_hostname = '{user}@{host}'.format(user=ssh_keys_user,host=str(inner_hostname))
-        auth_keys_data += '\nssh-rsa {pub_key} {user_host}'.format(pub_key=public_key,user_host=fake_hostname)
+        auth_keys_data += '\nssh-rsa {pub_key} {user_host}\n'.format(pub_key=public_key,user_host=fake_hostname)
 
     # for each host in ctx, add keys for all other hosts
     for remote in ctx.cluster.remotes: