Revision 3fb4f740 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
1242 | 1242 |
for node_name in hooks_results: |
1243 | 1243 |
show_node_header = True |
1244 | 1244 |
res = hooks_results[node_name] |
1245 |
if res.failed or res.data is False or not isinstance(res.data, list): |
|
1245 |
msg = res.RemoteFailMsg() |
|
1246 |
if msg: |
|
1246 | 1247 |
if res.offline: |
1247 | 1248 |
# no need to warn or set fail return value |
1248 | 1249 |
continue |
1249 |
feedback_fn(" Communication failure in hooks execution") |
|
1250 |
feedback_fn(" Communication failure in hooks execution: %s" % |
|
1251 |
msg) |
|
1250 | 1252 |
lu_result = 1 |
1251 | 1253 |
continue |
1252 |
for script, hkr, output in res.data:
|
|
1254 |
for script, hkr, output in res.payload:
|
|
1253 | 1255 |
if hkr == constants.HKR_FAIL: |
1254 | 1256 |
# The node header is only shown once, if there are |
1255 | 1257 |
# failing hooks on that node |
Also available in: Unified diff