Skip to content

Commit 4df0dbd

Browse files
authored
Merge pull request #8 from adam-trhon/fix-get-systemd-version
linux.py: handle systemd version without patch info
2 parents 3cfef85 + 375313f commit 4df0dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labgridhelper/linux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_systemd_version(command):
1616
out = command.run_check("systemctl --version")
1717
out = out[0]
1818

19-
parsed = re.search(r'^systemd\s+(?P<version>\d+)\s+', out)
19+
parsed = re.search(r'^systemd\s+(?P<version>\d+)', out)
2020
if not parsed:
2121
raise ValueError("Systemd version output changed")
2222
return int(parsed.group("version"))

0 commit comments

Comments
 (0)