mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
bugfix: fix regular expression to parse systemd results
This commit is contained in:
parent
cb3d170ce6
commit
f302ca7087
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ class Systemd < ServiceManager
|
|||
# parse data
|
||||
params = SimpleConfig.new(
|
||||
cmd.stdout.chomp,
|
||||
assignment_re: /^\s*([^:]*?)\s*:\s*(.*?)\s*$/,
|
||||
assignment_re: /^\s*([^=]*?)\s*=\s*(.*?)\s*$/,
|
||||
multiple_values: false,
|
||||
).params
|
||||
|
||||
|
|
Loading…
Reference in a new issue