From 7c24aee1c754d664881337690da5d0750f4a84d0 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sat, 16 Mar 2024 10:44:42 +0100 Subject: [PATCH] raised the minimal version of the module --- galaxy.yml | 2 +- plugins/modules/system_service.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/galaxy.yml b/galaxy.yml index 64bea05..d7c5b2a 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -13,7 +13,7 @@ tags: - systemd - linux dependencies: - sebastian.base: ">=0.4.0" + sebastian.base: ">=0.4.3" repository: https://gitea.sebastian-tobie.de/ansible/ansible-systemd.git # documentation: http://docs.example.com homepage: https://gitea.sebastian-tobie.de/ansible/ansible-systemd diff --git a/plugins/modules/system_service.py b/plugins/modules/system_service.py index 1a29a60..aedcc59 100644 --- a/plugins/modules/system_service.py +++ b/plugins/modules/system_service.py @@ -100,7 +100,7 @@ class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore[misc] self.unitfile = (SYSTEMD_SERVICE_CONFIG / self.get("name")).with_suffix(".service") self.__unit = None if self.get("type", "simple") != "oneshot" and len(self.get("start")) > 1: - self.module.fail_json("only oneshot services are allowed to have multiple start commands", **self.result) + self.fail("only oneshot services are allowed to have multiple start commands") def service(self) -> str: params = []