mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +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
|
# parse data
|
||||||
params = SimpleConfig.new(
|
params = SimpleConfig.new(
|
||||||
cmd.stdout.chomp,
|
cmd.stdout.chomp,
|
||||||
assignment_re: /^\s*([^:]*?)\s*:\s*(.*?)\s*$/,
|
assignment_re: /^\s*([^=]*?)\s*=\s*(.*?)\s*$/,
|
||||||
multiple_values: false,
|
multiple_values: false,
|
||||||
).params
|
).params
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue