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

This commit is contained in:
Zuul 2018-08-19 02:50:13 +00:00 committed by Gerrit Code Review
commit 11c3141b79
1 changed files with 1 additions and 1 deletions

View File

@ -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)