Revision 3fb4f740 lib/mcpu.py
b/lib/mcpu.py | ||
---|---|---|
340 | 340 |
raise errors.HooksFailure("Communication failure") |
341 | 341 |
for node_name in results: |
342 | 342 |
res = results[node_name] |
343 |
if res.failed or res.data is False or not isinstance(res.data, list): |
|
344 |
if not res.offline: |
|
345 |
self.proc.LogWarning("Communication failure to node %s" % |
|
346 |
node_name) |
|
343 |
if res.offline: |
|
347 | 344 |
continue |
348 |
for script, hkr, output in res.data: |
|
345 |
msg = res.RemoteFailMsg() |
|
346 |
if msg: |
|
347 |
self.proc.LogWarning("Communication failure to node %s: %s", |
|
348 |
node_name, msg) |
|
349 |
continue |
|
350 |
for script, hkr, output in res.payload: |
|
349 | 351 |
if hkr == constants.HKR_FAIL: |
350 | 352 |
errs.append((node_name, script, output)) |
351 | 353 |
if errs: |
Also available in: Unified diff