From 62e4cbe0401a593840d1cab3f680c1efcbc0af11 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Mon, 1 May 2023 10:29:21 +0200 Subject: [PATCH] fixed the default description --- plugins/modules/mount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/mount.py b/plugins/modules/mount.py index 38830f4..672bff2 100644 --- a/plugins/modules/mount.py +++ b/plugins/modules/mount.py @@ -41,7 +41,7 @@ class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore self.unitfile = SYSTEMD_SERVICE_CONFIG.joinpath(self.mountdir.relative_to("/").as_posix().replace("/", "-")).with_suffix(".mount") self.__unit = None if self.get("description", False) is False: - self.params["description"] = "Mount for {}".format(self.mountdir.relative_to("/").as_posix()) + self.params["description"] = "Mount for {}".format(self.mountdir.as_posix()) def unit(self) -> str: if self.__unit is None: