From bfbd3b54323fd3ee7eb46e0a5caff6fa2febc59e Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Fri, 21 Apr 2023 00:21:55 +0200 Subject: [PATCH] added the default description back --- plugins/modules/mount.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/modules/mount.py b/plugins/modules/mount.py index 474bc0c..7d1c876 100644 --- a/plugins/modules/mount.py +++ b/plugins/modules/mount.py @@ -40,6 +40,8 @@ class Module(SystemdUnitModule): self.mountdir = pathlib.Path(self.params["where"]) 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()) def unit(self) -> str: if self.__unit is None: