Skip to content
Snippets Groups Projects
Commit 62579388 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix an unsafe formatting bug


This might fix issue 84; in any case, the current situation is that we
have a potentially unsafe formatting, which should be fixed.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 691744c4
No related branches found
No related tags found
No related merge requests found
...@@ -342,8 +342,7 @@ class HooksMaster(object): ...@@ -342,8 +342,7 @@ class HooksMaster(object):
res = results[node_name] res = results[node_name]
if res.failed or res.data is False or not isinstance(res.data, list): if res.failed or res.data is False or not isinstance(res.data, list):
if not res.offline: if not res.offline:
self.proc.LogWarning("Communication failure to node %s" % self.proc.LogWarning("Communication failure to node %s", node_name)
node_name)
continue continue
for script, hkr, output in res.data: for script, hkr, output in res.data:
if hkr == constants.HKR_FAIL: if hkr == constants.HKR_FAIL:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment