Reformat output warning message

This commit is contained in:
Joshua Boniface 2020-01-12 16:06:18 -05:00
parent 003171ea18
commit 3fbd5fcead
1 changed files with 6 additions and 2 deletions

View File

@ -353,7 +353,9 @@ def node_secondary(node):
task_retcode, task_retdata = pvc_provisioner.task_status(config, None)
if len(task_retdata) > 0:
click.echo("Note: There are currently {} active or queued provisioner jobs on the current primary node. These will continue executing, but job status will not be visible until the current node returns to primary state.".format(len(task_retdata)))
click.echo("Note: There are currently {} active or queued provisioner jobs on the current primary node.".format(len(task_retdata)))
click.echo(" These jobs will continue executing, but status will not be visible until the current")
click.echo(" node returns to primary state.")
click.echo()
retcode, retmsg = pvc_node.node_coordinator_state(config, node, 'secondary')
@ -373,7 +375,9 @@ def node_primary(node):
task_retcode, task_retdata = pvc_provisioner.task_status(config, None)
if len(task_retdata) > 0:
click.echo("Note: There are currently {} active or queued provisioner jobs on the current primary node. These will continue executing, but job status will not be visible until the current node returns to primary state.".format(len(task_retdata)))
click.echo("Note: There are currently {} active or queued provisioner jobs on the current primary node.".format(len(task_retdata)))
click.echo(" These jobs will continue executing, but status will not be visible until the current")
click.echo(" node returns to primary state.")
click.echo()
retcode, retmsg = pvc_node.node_coordinator_state(config, node, 'primary')