From 45663b4fb35a1e0feb3c8314f7c1a8c77455eef2 Mon Sep 17 00:00:00 2001 From: Ian Main Date: Thu, 23 Nov 2017 16:38:26 +0000 Subject: [PATCH] Print out the deploy command we are using. Change-Id: I11c1ede390ca47fa137c0ab9e001f07a7773e5f1 --- tripleoclient/v1/undercloud.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tripleoclient/v1/undercloud.py b/tripleoclient/v1/undercloud.py index 6d157f031..f8573dab7 100644 --- a/tripleoclient/v1/undercloud.py +++ b/tripleoclient/v1/undercloud.py @@ -58,10 +58,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") @@ -77,11 +78,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'])