Handle verifyNode properly

This commit is contained in:
Joshua Boniface 2018-10-27 16:19:07 -04:00
parent 4b924e54d9
commit a5be42908d
1 changed files with 2 additions and 3 deletions

View File

@ -170,10 +170,9 @@ def getDomainControllers(parsed_xml):
# Verify node is valid in cluster
#
def verifyNode(zk_conn, node):
try:
zkhandler.readdata('/nodes/{}'.format(node))
if zkhandler.exists(zk_conn, '/nodes/{}'.format(node)):
return True
except:
else:
return False
#