Add confirmation to cluster init
This commit is contained in:
parent
3dd56c55c0
commit
33bf3ee3cf
|
@ -1504,6 +1504,9 @@ def init_cluster():
|
||||||
Perform initialization of a new PVC cluster.
|
Perform initialization of a new PVC cluster.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
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))
|
||||||
|
choice = input('Are you sure you want to do this? (y/N) ')
|
||||||
|
if choice == 'y' or choice == 'Y':
|
||||||
import pvc_init
|
import pvc_init
|
||||||
pvc_init.init_zookeeper(zk_host)
|
pvc_init.init_zookeeper(zk_host)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue