systemd template services must not discard template part

reviewable/pr18780/r1
Charles Duffy 11 years ago
parent 8b19f744a3
commit 32620cab4d

@ -410,11 +410,13 @@ class LinuxService(Service):
# adjust the service name to account for template service unit files
index = name.find('@')
if index != -1:
name = name[:index+1]
template_name = name[:index+1]
else:
template_name = name
self.__systemd_unit = None
for line in out.splitlines():
if line.startswith(name):
if line.startswith(template_name):
self.__systemd_unit = name
return True
return False

Loading…
Cancel
Save