From 711b64f81edfb7865440ab56415c259024ff88b9 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 12 Oct 2020 15:13:13 +0200 Subject: [PATCH] No need to display this --test_status warning when adding postgresql service --- src/yunohost/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/service.py b/src/yunohost/service.py index cf2798954..1b1fec81b 100644 --- a/src/yunohost/service.py +++ b/src/yunohost/service.py @@ -99,7 +99,7 @@ def service_add(name, description=None, log=None, log_type=None, test_status=Non # Try to get the description from systemd service _, systemd_info = _get_service_information_from_systemd(name) type_ = systemd_info.get("Type") if systemd_info is not None else "" - if type_ == "oneshot": + if type_ == "oneshot" and name != "postgresql": logger.warning("/!\\ Packagers! Please provide a --test_status when adding oneshot-type services in Yunohost, such that it has a reliable way to check if the service is running or not.") if test_conf: