Handle verifyNode properly
This commit is contained in:
parent
4b924e54d9
commit
a5be42908d
|
@ -170,10 +170,9 @@ def getDomainControllers(parsed_xml):
|
||||||
# Verify node is valid in cluster
|
# Verify node is valid in cluster
|
||||||
#
|
#
|
||||||
def verifyNode(zk_conn, node):
|
def verifyNode(zk_conn, node):
|
||||||
try:
|
if zkhandler.exists(zk_conn, '/nodes/{}'.format(node)):
|
||||||
zkhandler.readdata('/nodes/{}'.format(node))
|
|
||||||
return True
|
return True
|
||||||
except:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue