Add confirmation to cluster init

This commit is contained in:
Joshua Boniface 2019-06-21 09:02:58 -04:00
parent 3dd56c55c0
commit 33bf3ee3cf
1 changed files with 5 additions and 2 deletions

View File

@ -1504,8 +1504,11 @@ def init_cluster():
Perform initialization of a new PVC cluster. Perform initialization of a new PVC cluster.
""" """
import pvc_init 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.'.format(name))
pvc_init.init_zookeeper(zk_host) 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)
############################################################################### ###############################################################################