mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[CI] Format code with Black
This commit is contained in:
parent
0826a54189
commit
3577956c06
2 changed files with 5 additions and 7 deletions
|
@ -26,7 +26,6 @@ import requests
|
|||
|
||||
|
||||
def main():
|
||||
|
||||
with open("../share/actionsmap.yml") as f:
|
||||
action_map = yaml.safe_load(f)
|
||||
|
||||
|
|
|
@ -735,10 +735,9 @@ def _enable_certificate(domain, new_cert_folder):
|
|||
|
||||
for service in ("dovecot", "metronome"):
|
||||
# Ugly trick to not restart metronome if it's not installed or no domain configured for XMPP
|
||||
if (
|
||||
service == "metronome"
|
||||
and (os.system("dpkg --list | grep -q 'ii *metronome'") != 0
|
||||
or not glob("/etc/metronome/conf.d/*.cfg.lua"))
|
||||
if service == "metronome" and (
|
||||
os.system("dpkg --list | grep -q 'ii *metronome'") != 0
|
||||
or not glob("/etc/metronome/conf.d/*.cfg.lua")
|
||||
):
|
||||
continue
|
||||
_run_service_command("restart", service)
|
||||
|
|
Loading…
Add table
Reference in a new issue