Fix logic error in init

This commit is contained in:
Joshua Boniface 2019-06-21 15:38:32 -04:00
parent 519203d7fd
commit 26a4b3b757
1 changed files with 5 additions and 3 deletions

View File

@ -1512,7 +1512,9 @@ def init_cluster(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.')
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
pvc_init.init_zookeeper(zk_host)