Propagate removal of 'active' to that piece of code that uses it

This commit is contained in:
Alexandre Aubin 2019-11-07 15:59:31 +01:00
parent e578140172
commit 3b4ad59cd7

View file

@ -3140,7 +3140,7 @@ def _assert_system_is_sane_for_app(manifest, when):
services.append("fail2ban")
# List services currently down and raise an exception if any are found
faulty_services = [s for s in services if service_status(s)["active"] != "active"]
faulty_services = [s for s in services if service_status(s)["status"] != "running"]
if faulty_services:
if when == "pre":
raise YunohostError('app_action_cannot_be_ran_because_required_services_down',