Improve autoselection setup
This commit is contained in:
parent
45ef7f2a30
commit
fb29ce1167
|
@ -166,15 +166,21 @@ def getInformationFromXML(zk_conn, uuid):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
domain_node_limit = zkhandler.readdata(zk_conn, '/domains/{}/node_limit'.format(uuid))
|
domain_node_limit = zkhandler.readdata(zk_conn, '/domains/{}/node_limit'.format(uuid))
|
||||||
domain_node_selector = zkhandler.readdata(zk_conn, '/domains/{}/node_selector'.format(uuid))
|
|
||||||
domain_node_autostart = zkhandler.readdata(zk_conn, '/domains/{}/node_autostart'.format(uuid))
|
|
||||||
except:
|
except:
|
||||||
domain_node_limit = None
|
domain_node_limit = None
|
||||||
|
try
|
||||||
|
domain_node_selector = zkhandler.readdata(zk_conn, '/domains/{}/node_selector'.format(uuid))
|
||||||
|
except:
|
||||||
domain_node_selector = None
|
domain_node_selector = None
|
||||||
|
try:
|
||||||
|
domain_node_autostart = zkhandler.readdata(zk_conn, '/domains/{}/node_autostart'.format(uuid))
|
||||||
|
except:
|
||||||
domain_node_autostart = None
|
domain_node_autostart = None
|
||||||
|
|
||||||
if not domain_node_limit:
|
if not domain_node_limit:
|
||||||
domain_node_limit = 'False'
|
domain_node_limit = 'False'
|
||||||
|
if not domain_node_autostart:
|
||||||
|
domain_node_autostart = 'False'
|
||||||
|
|
||||||
parsed_xml = getDomainXML(zk_conn, uuid)
|
parsed_xml = getDomainXML(zk_conn, uuid)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue