mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-27 03:19:56 +00:00
Try a less jarring exit strategy
Have client not provide a developer looking trace on abort.
This commit is contained in:
parent
a43361bb98
commit
c441739f68
@ -263,6 +263,8 @@ class Command(object):
|
||||
else:
|
||||
p = input('Command is about to affect {0} nodes, continue (y/n)? '.format(nsize))
|
||||
if p.lower() != 'y':
|
||||
sys.stderr.write('Aborting at user request\n')
|
||||
sys.exit(1)
|
||||
raise Exception("Aborting at user request")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user