Skip to content

Commit

Permalink
Merge pull request #8 from adam-trhon/fix-get-systemd-version
Browse files Browse the repository at this point in the history
linux.py: handle systemd version without patch info
  • Loading branch information
Emantor committed Oct 14, 2020
2 parents 3cfef85 + 375313f commit 4df0dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labgridhelper/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_systemd_version(command):
out = command.run_check("systemctl --version")
out = out[0]

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

0 comments on commit 4df0dbd

Please sign in to comment.