Merge "Print out the deploy command we are using."

This commit is contained in:
Zuul 2017-12-01 19:46:12 +00:00 committed by Gerrit Code Review
commit 7559118415
1 changed files with 8 additions and 6 deletions

View File

@ -59,10 +59,11 @@ class InstallUndercloud(command.Command):
utils.ensure_run_as_normal_user()
if parsed_args.use_heat:
subprocess.check_call(
undercloud_config.
cmd = undercloud_config.\
prepare_undercloud_deploy(no_validations=parsed_args.
no_validations))
no_validations)
print("Running: %s" % ' '.join(cmd))
subprocess.check_call(cmd)
else:
subprocess.check_call("instack-install-undercloud")
@ -78,11 +79,12 @@ class UpgradeUndercloud(InstallUndercloud):
utils.ensure_run_as_normal_user()
if parsed_args.use_heat:
subprocess.check_call(
undercloud_config.
cmd = undercloud_config.\
prepare_undercloud_deploy(upgrade=True,
no_validations=parsed_args.
no_validations))
no_validations)
print("Running: %s" % ' '.join(cmd))
subprocess.check_call(cmd)
else:
subprocess.check_call(['sudo', 'yum', 'update', '-y',
'instack-undercloud'])