From 26a4b3b757ded132558ae664c1b4fb588f8d13fb Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 21 Jun 2019 15:38:32 -0400 Subject: [PATCH] Fix logic error in init --- client-cli/pvc.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client-cli/pvc.py b/client-cli/pvc.py index 090a6432..9cb031db 100755 --- a/client-cli/pvc.py +++ b/client-cli/pvc.py @@ -1512,9 +1512,11 @@ 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': - import pvc_init - pvc_init.init_zookeeper(zk_host) + if choice != 'y' or choice != 'Y': + exit(0) + + import pvc_init + pvc_init.init_zookeeper(zk_host) ###############################################################################