Merge "Pass undercloud's private key to inventory used in package_update."

This commit is contained in:
Zuul 2019-08-28 16:28:33 +00:00 committed by Gerrit Code Review
commit 2e0b19ce10
1 changed files with 2 additions and 0 deletions

View File

@ -1076,6 +1076,8 @@ def get_tripleo_ansible_inventory(inventory_file=None,
'--stack', stack,
'--ansible_ssh_user', ssh_user,
'--undercloud-connection', 'ssh',
'--undercloud-key-file',
'/var/lib/mistral/.ssh/tripleo-admin-rsa',
'--static-yaml-inventory', inventory_file)
except processutils.ProcessExecutionError as e:
message = _("Failed to generate inventory: %s") % str(e)