Fix some bugs

This commit is contained in:
2018-09-23 01:05:54 -04:00
parent 6dfb9d8539
commit 85d6e02ed2
3 changed files with 14 additions and 11 deletions

View File

@ -170,9 +170,9 @@ def getDomainControllers(parsed_xml):
def verifyNode(zk_conn, node):
try:
zk_conn.get('/nodes/{}'.format(node))
return True
except:
click.echo('ERROR: No node named "{}" is present in the cluster.'.format(node))
exit(1)
return False
#
# Get the list of valid target hypervisors