mirror of
https://github.com/inspec/inspec
synced 2024-11-30 08:30:39 +00:00
Fix broken regex
Signed-off-by: James 'zofrex' Sanderson <zofrex@gmail.com>
This commit is contained in:
parent
acf5a2c955
commit
c3b0310315
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ module Inspec::Resources
|
||||||
|
|
||||||
# search for the service
|
# search for the service
|
||||||
|
|
||||||
srv = %r{^.*/#{service_name}$)}.match(cmd.stdout)
|
srv = %r{^.*/(#{service_name}$)}.match(cmd.stdout)
|
||||||
return nil if srv.nil? || srv[0].nil?
|
return nil if srv.nil? || srv[0].nil?
|
||||||
|
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
Loading…
Reference in a new issue