Fix logic error in init
This commit is contained in:
parent
519203d7fd
commit
26a4b3b757
|
@ -1512,7 +1512,9 @@ def init_cluster(yes):
|
||||||
if not yes:
|
if not yes:
|
||||||
click.echo('DANGER: This will remove any existing cluster on these coordinators and create a new cluster. Any existing resources on the old cluster will be left abandoned.')
|
click.echo('DANGER: This will remove any existing cluster on these coordinators and create a new cluster. Any existing resources on the old cluster will be left abandoned.')
|
||||||
choice = input('Are you sure you want to do this? (y/N) ')
|
choice = input('Are you sure you want to do this? (y/N) ')
|
||||||
if choice == 'y' or choice == 'Y':
|
if choice != 'y' or choice != 'Y':
|
||||||
|
exit(0)
|
||||||
|
|
||||||
import pvc_init
|
import pvc_init
|
||||||
pvc_init.init_zookeeper(zk_host)
|
pvc_init.init_zookeeper(zk_host)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue