Clean up redundant message output
This commit is contained in:
parent
65932b20d2
commit
0caea03428
|
@ -368,8 +368,8 @@ def node_secondary(node, wait):
|
||||||
if not retcode:
|
if not retcode:
|
||||||
cleanup(retcode, retmsg)
|
cleanup(retcode, retmsg)
|
||||||
else:
|
else:
|
||||||
click.echo(retmsg)
|
|
||||||
if wait:
|
if wait:
|
||||||
|
click.echo(retmsg)
|
||||||
click.echo("Waiting for state transition... ", nl=False)
|
click.echo("Waiting for state transition... ", nl=False)
|
||||||
# Every half-second, check if the API is reachable and the node is in secondary state
|
# Every half-second, check if the API is reachable and the node is in secondary state
|
||||||
while True:
|
while True:
|
||||||
|
@ -411,8 +411,8 @@ def node_primary(node, wait):
|
||||||
if not retcode:
|
if not retcode:
|
||||||
cleanup(retcode, retmsg)
|
cleanup(retcode, retmsg)
|
||||||
else:
|
else:
|
||||||
click.echo(retmsg)
|
|
||||||
if wait:
|
if wait:
|
||||||
|
click.echo(retmsg)
|
||||||
click.echo("Waiting for state transition... ", nl=False)
|
click.echo("Waiting for state transition... ", nl=False)
|
||||||
# Every half-second, check if the API is reachable and the node is in secondary state
|
# Every half-second, check if the API is reachable and the node is in secondary state
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue