2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

Fix noderun when invalid noderange passed

exitcode was not yet set when starting to be referenced.  Initialize to
zero prior to any possible reference to fix.
This commit is contained in:
Jarrod Johnson 2017-10-02 09:06:29 -04:00
parent 4236f3fd78
commit 4e1ebc290b

View File

@ -56,6 +56,7 @@ def run():
all = set([])
pipedesc = {}
pendingexecs = deque()
exitcode = 0
for exp in c.create('/noderange/{0}/attributes/expression'.format(args[0]),
{'expression': cmdstr}):
@ -71,7 +72,6 @@ def run():
run_cmdv(node, cmdv, all, pipedesc)
else:
pendingexecs.append((node, cmdv))
exitcode = 0
if not all or exitcode:
sys.exit(exitcode)
rdy, _, _ = select.select(all, [], [], 10)