mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Store hooks results by name instead of filename
This commit is contained in:
parent
e9a10e79fb
commit
79484416a3
1 changed files with 4 additions and 1 deletions
|
@ -217,7 +217,10 @@ def hook_callback(action, hooks=[], args=None):
|
||||||
logger.exception("error while executing hook '%s'",
|
logger.exception("error while executing hook '%s'",
|
||||||
info['path'])
|
info['path'])
|
||||||
state = 'failed'
|
state = 'failed'
|
||||||
result[state][filename] = info['path']
|
try:
|
||||||
|
result[state][name].append(info['path'])
|
||||||
|
except KeyError:
|
||||||
|
result[state][name] = [info['path']]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue