From 68e2560dc1bb20f8bc297d2da135e5f7b68688e5 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Fri, 21 Apr 2023 20:52:00 +0200 Subject: [PATCH] added the missing prepare --- plugins/modules/target.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/modules/target.py b/plugins/modules/target.py index 5cfa972..c4b4742 100644 --- a/plugins/modules/target.py +++ b/plugins/modules/target.py @@ -23,6 +23,9 @@ class Module(SystemdUnitModule): ), ) + def prepare(self): + self.unitfile = (SYSTEMD_SERVICE_CONFIG, self.get("name")).with_stem(".target") + def header(self) -> str: section = super().header() section += "AllowIsolate={}".format(systemdbool(self.get("allow_isolate", False)))