1
0
Fork 0

fixed the default description

Dieser Commit ist enthalten in:
Sebastian Tobie 2023-05-01 10:29:21 +02:00
Ursprung dcc685616b
Commit 62e4cbe040
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -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.unitfile = SYSTEMD_SERVICE_CONFIG.joinpath(self.mountdir.relative_to("/").as_posix().replace("/", "-")).with_suffix(".mount")
self.__unit = None self.__unit = None
if self.get("description", False) is False: 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: def unit(self) -> str:
if self.__unit is None: if self.__unit is None: