mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] reduce indentation level
This commit is contained in:
parent
bd28c24479
commit
1fab47cbea
1 changed files with 13 additions and 8 deletions
|
@ -292,14 +292,19 @@ def service_regen_conf(names=[], with_diff=False, force=False, dry_run=False,
|
||||||
# Return the list of pending conf
|
# Return the list of pending conf
|
||||||
if list_pending:
|
if list_pending:
|
||||||
pending_conf = _get_pending_conf(names)
|
pending_conf = _get_pending_conf(names)
|
||||||
if with_diff:
|
|
||||||
|
if not with_diff:
|
||||||
|
return pending_conf
|
||||||
|
|
||||||
for service, conf_files in pending_conf.items():
|
for service, conf_files in pending_conf.items():
|
||||||
for system_path, pending_path in conf_files.items():
|
for system_path, pending_path in conf_files.items():
|
||||||
|
|
||||||
pending_conf[service][system_path] = {
|
pending_conf[service][system_path] = {
|
||||||
'pending_conf': pending_path,
|
'pending_conf': pending_path,
|
||||||
'diff': _get_files_diff(
|
'diff': _get_files_diff(
|
||||||
system_path, pending_path, True),
|
system_path, pending_path, True),
|
||||||
}
|
}
|
||||||
|
|
||||||
return pending_conf
|
return pending_conf
|
||||||
|
|
||||||
# Clean pending conf directory
|
# Clean pending conf directory
|
||||||
|
|
Loading…
Add table
Reference in a new issue