mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +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
|
||||
|
||||
srv = %r{^.*/#{service_name}$)}.match(cmd.stdout)
|
||||
srv = %r{^.*/(#{service_name}$)}.match(cmd.stdout)
|
||||
return nil if srv.nil? || srv[0].nil?
|
||||
|
||||
enabled = true
|
||||
|
|
Loading…
Reference in a new issue