Insert break lines when showing FFWD upgrade operator warning.
This is a simple patch to display properly the
warning text for operators when running the FFWD.
Also, rephrases the warning message as FFWD are
now fully tested.
Resolves: rhbz#1566294
Closes-Bug: 1785829
Change-Id: I0174a075e82d41ee9eacb4bdf0b4ba70cfae1007
(cherry picked from commit a21df11158
)
This commit is contained in:
parent
be397b89dd
commit
9b837182d1
|
@ -857,13 +857,11 @@ def prepend_environment(environment_files, templates_dir, environment):
|
|||
|
||||
|
||||
def ffwd_upgrade_operator_confirm(parsed_args_yes, log):
|
||||
print("Warning! The TripleO Fast Forward Upgrade workflow "
|
||||
"is currently considered under development. In "
|
||||
"particular invocations of the ffwd-upgrade cli "
|
||||
"should be initially limited to development/test "
|
||||
"environments. Once and if you decide to use ffwd-upgrade "
|
||||
print("\nWarning! The TripleO Fast Forward Upgrade "
|
||||
"workflow is a critical operation against the deployed "
|
||||
"environment.\nOnce and if you decide to use ffwd-upgrade "
|
||||
"in production, ensure you are adequately prepared "
|
||||
"with valid backup of your current deployment state.")
|
||||
"with valid backup of your current deployment state.\n")
|
||||
if parsed_args_yes:
|
||||
log.debug("Fast forward upgrade --yes continuing")
|
||||
print("Continuing fast forward upgrade")
|
||||
|
@ -876,7 +874,7 @@ def ffwd_upgrade_operator_confirm(parsed_args_yes, log):
|
|||
pass
|
||||
response = input("Proceed with the fast forward upgrade? "
|
||||
"Type 'yes' to continue and anything else to "
|
||||
"cancel. Consider using the --yes parameter if "
|
||||
"cancel.\nConsider using the --yes parameter if "
|
||||
"you wish to skip this warning in future. ")
|
||||
if response != 'yes':
|
||||
log.debug("Fast forward upgrade cancelled on user request")
|
||||
|
|
Loading…
Reference in New Issue