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