From a5be42908d0295a3ada9eae55a4221ef1df4e2ab Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 27 Oct 2018 16:19:07 -0400 Subject: [PATCH] Handle verifyNode properly --- client-common/common.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client-common/common.py b/client-common/common.py index 3292bed3..bc8b8418 100644 --- a/client-common/common.py +++ b/client-common/common.py @@ -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 #