This commit is contained in:
Joshua Boniface 2018-06-11 02:16:24 -04:00
parent 48326226da
commit 8447c6890b
1 changed files with 3 additions and 3 deletions

6
pvc.py
View File

@ -73,7 +73,7 @@ def flush_host(node_name):
click.echo('ERROR: No node named {} is present in the cluster.'.format(node_name)) click.echo('ERROR: No node named {} is present in the cluster.'.format(node_name))
exit(1) exit(1)
click.echo('Flushing hypervisor {} of running VMs.'.format(node_name) click.echo('Flushing hypervisor {} of running VMs.'.format(node_name))
# Add the new domain to Zookeeper # Add the new domain to Zookeeper
transaction = zk.transaction() transaction = zk.transaction()
@ -106,12 +106,12 @@ def ready_host(node_name):
# Verify node is valid # Verify node is valid
try: try:
zk.get('/nodes/{}'.format(node_name) zk.get('/nodes/{}'.format(node_name))
except: except:
click.echo('ERROR: No node named {} is present in the cluster.'.format(node_name)) click.echo('ERROR: No node named {} is present in the cluster.'.format(node_name))
exit(1) exit(1)
click.echo('Restoring hypervisor {} to active service.'.format(node_name) click.echo('Restoring hypervisor {} to active service.'.format(node_name))
# Add the new domain to Zookeeper # Add the new domain to Zookeeper
transaction = zk.transaction() transaction = zk.transaction()