diff options
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/Systemd.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/Systemd.py b/src/lib/Bcfg2/Client/Tools/Systemd.py index 2965ce74d..d2439f64d 100644 --- a/src/lib/Bcfg2/Client/Tools/Systemd.py +++ b/src/lib/Bcfg2/Client/Tools/Systemd.py @@ -16,7 +16,9 @@ class Systemd(Bcfg2.Client.Tools.SvcTool): def get_svc_name(self, service): """Append .service to name if name doesn't specify a unit type.""" svc = service.get('name') - if svc.endswith(('.service', '.socket', '.target')): + if svc.endswith(('.service', '.socket', '.device', '.mount', + '.automount', '.swap', '.target', '.path', + '.timer', '.snapshot', '.slice', '.scope')): return svc else: return '%s.service' % svc |