Merge "Use user specified ssh key when removing tmp key"

changes/99/583799/5
Zuul 5 years ago committed by Gerrit Code Review
commit 11c3141b79

@ -230,7 +230,7 @@ def enable_ssh_admin(log, clients, hosts, ssh_user, ssh_key):
for host in hosts:
rm_tmp_key_command = ["ssh"] + ssh_options.split()
rm_tmp_key_command += \
["-l", ssh_user, host,
["-i", ssh_key, "-l", ssh_user, host,
"sed -i -e '/%s/d' $HOME/.ssh/authorized_keys" %
tmp_key_comment]
print("Removing TripleO short term key from %s" % host)

Loading…
Cancel
Save