From d763bed00ec042221144f7e7db93729e9ccf9414 Mon Sep 17 00:00:00 2001 From: Luca Bigliardi <shammash@google.com> Date: Tue, 25 Aug 2009 16:03:09 +0100 Subject: [PATCH] HooksMaster: fix RunPhase logging In case of complete failure results is empty, return immediately (tnx unittests). Signed-off-by: Luca Bigliardi <shammash@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/mcpu.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mcpu.py b/lib/mcpu.py index 630f8775b..4c2958420 100644 --- a/lib/mcpu.py +++ b/lib/mcpu.py @@ -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: -- GitLab