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
|
# Append the service results
|
||||||
result[service] = {
|
result[service] = {
|
||||||
'succeed': succeed_regen,
|
'applied': succeed_regen,
|
||||||
'failed': failed_regen
|
'pending': failed_regen
|
||||||
}
|
}
|
||||||
|
|
||||||
# Execute hooks for post-regen
|
# Execute hooks for post-regen
|
||||||
def _pre_call(name, priority, path, args):
|
def _pre_call(name, priority, path, args):
|
||||||
# append coma-separated successful changes for the service
|
# append coma-separated applied changes for the service
|
||||||
if name in result and result[name]['succeed']:
|
if name in result and result[name]['applied']:
|
||||||
args.append(','.join(result[name]['succeed'].keys()))
|
args.append(','.join(result[name]['applied'].keys()))
|
||||||
else:
|
else:
|
||||||
args.append('')
|
args.append('')
|
||||||
return args
|
return args
|
||||||
|
|
Loading…
Add table
Reference in a new issue