mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Revert "automatically ignore the service in diagnosis if it has been deactivated with the ynh cli"
This reverts commit ff78f3ada7
.
This commit is contained in:
parent
66f8e31260
commit
c410b70b31
1 changed files with 0 additions and 7 deletions
|
@ -26,7 +26,6 @@ from glob import glob
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from moulinette import m18n
|
from moulinette import m18n
|
||||||
from yunohost.utils.diagnosis import diagnosis_ignore, diagnosis_unignore
|
|
||||||
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
|
||||||
|
@ -297,9 +296,6 @@ def service_enable(names):
|
||||||
names = [names]
|
names = [names]
|
||||||
for name in names:
|
for name in names:
|
||||||
if _run_service_command("enable", name):
|
if _run_service_command("enable", name):
|
||||||
services = _get_services()
|
|
||||||
if name in services:
|
|
||||||
diagnosis_unignore({"services": [{"service": name}]})
|
|
||||||
logger.success(m18n.n("service_enabled", service=name))
|
logger.success(m18n.n("service_enabled", service=name))
|
||||||
else:
|
else:
|
||||||
raise YunohostError(
|
raise YunohostError(
|
||||||
|
@ -319,9 +315,6 @@ def service_disable(names):
|
||||||
names = [names]
|
names = [names]
|
||||||
for name in names:
|
for name in names:
|
||||||
if _run_service_command("disable", name):
|
if _run_service_command("disable", name):
|
||||||
services = _get_services()
|
|
||||||
if name in services:
|
|
||||||
diagnosis_ignore({"services": [{"service": name}]})
|
|
||||||
logger.success(m18n.n("service_disabled", service=name))
|
logger.success(m18n.n("service_disabled", service=name))
|
||||||
else:
|
else:
|
||||||
raise YunohostError(
|
raise YunohostError(
|
||||||
|
|
Loading…
Add table
Reference in a new issue