[enh] Store hooks results by name instead of filename

This commit is contained in:
Jérôme Lebleu 2015-10-01 20:28:34 +02:00
parent e9a10e79fb
commit 79484416a3

View file

@ -217,7 +217,10 @@ def hook_callback(action, hooks=[], args=None):
logger.exception("error while executing hook '%s'",
info['path'])
state = 'failed'
result[state][filename] = info['path']
try:
result[state][name].append(info['path'])
except KeyError:
result[state][name] = [info['path']]
return result