mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[CI] Format code
This commit is contained in:
parent
e21ff4d43a
commit
c62e168689
1 changed files with 12 additions and 4 deletions
|
@ -37,7 +37,13 @@ from moulinette import m18n
|
||||||
from yunohost.utils.error import YunohostError, YunohostValidationError
|
from yunohost.utils.error import YunohostError, YunohostValidationError
|
||||||
from moulinette.utils.process import check_output
|
from moulinette.utils.process import check_output
|
||||||
from moulinette.utils.log import getActionLogger
|
from moulinette.utils.log import getActionLogger
|
||||||
from moulinette.utils.filesystem import read_file, append_to_file, write_to_file, read_yaml, write_to_yaml
|
from moulinette.utils.filesystem import (
|
||||||
|
read_file,
|
||||||
|
append_to_file,
|
||||||
|
write_to_file,
|
||||||
|
read_yaml,
|
||||||
|
write_to_yaml,
|
||||||
|
)
|
||||||
|
|
||||||
MOULINETTE_LOCK = "/var/run/moulinette_yunohost.lock"
|
MOULINETTE_LOCK = "/var/run/moulinette_yunohost.lock"
|
||||||
|
|
||||||
|
@ -680,9 +686,11 @@ def _get_services():
|
||||||
|
|
||||||
services.update(read_yaml(SERVICES_CONF) or {})
|
services.update(read_yaml(SERVICES_CONF) or {})
|
||||||
|
|
||||||
services = {name: infos
|
services = {
|
||||||
for name, infos in services.items()
|
name: infos
|
||||||
if name not in legacy_keys_to_delete}
|
for name, infos in services.items()
|
||||||
|
if name not in legacy_keys_to_delete
|
||||||
|
}
|
||||||
except Exception:
|
except Exception:
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue