Commit d763bed0 authored by Luca Bigliardi's avatar Luca Bigliardi
Browse files

HooksMaster: fix RunPhase logging



In case of complete failure results is empty, return immediately
(tnx unittests).
Signed-off-by: default avatarLuca Bigliardi <shammash@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 3cb5c1e3
......@@ -364,6 +364,7 @@ class HooksMaster(object):
raise errors.HooksFailure(msg)
else:
self.lu.LogWarning(msg)
return results
for node_name in results:
res = results[node_name]
if res.offline:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment