mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Use more precise keys in service_regen_conf output
This commit is contained in:
parent
f96b2afca9
commit
b4cbe19865
1 changed files with 5 additions and 5 deletions
|
@ -426,15 +426,15 @@ def service_regen_conf(names=[], with_diff=False, force=False,
|
|||
|
||||
# Append the service results
|
||||
result[service] = {
|
||||
'succeed': succeed_regen,
|
||||
'failed': failed_regen
|
||||
'applied': succeed_regen,
|
||||
'pending': failed_regen
|
||||
}
|
||||
|
||||
# Execute hooks for post-regen
|
||||
def _pre_call(name, priority, path, args):
|
||||
# append coma-separated successful changes for the service
|
||||
if name in result and result[name]['succeed']:
|
||||
args.append(','.join(result[name]['succeed'].keys()))
|
||||
# append coma-separated applied changes for the service
|
||||
if name in result and result[name]['applied']:
|
||||
args.append(','.join(result[name]['applied'].keys()))
|
||||
else:
|
||||
args.append('')
|
||||
return args
|
||||
|
|
Loading…
Add table
Reference in a new issue