From e66ef401a95889a8c9ec9cfca74584afee7fa124 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Fri, 21 Apr 2023 21:14:30 +0200 Subject: [PATCH] fixed name --- plugins/modules/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/target.py b/plugins/modules/target.py index 5a54966..e06f35a 100644 --- a/plugins/modules/target.py +++ b/plugins/modules/target.py @@ -26,7 +26,7 @@ class Module(SystemdUnitModule): def prepare(self): try: self.unitfile = (SYSTEMD_SERVICE_CONFIG/ self.get("name")).with_stem(".target") - self.set("name", self.get(name)) + self.set("name", self.get("name")) except KeyError: self.set("params", self.params) self.__unit = None