mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +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:
parent
d4265fa406
commit
c0ab8532df
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user