2
0
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:
Jarrod Johnson 2019-10-23 14:41:57 -04:00
parent a43361bb98
commit c441739f68

View File

@ -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")