Fix broken regex

Signed-off-by: James 'zofrex' Sanderson <zofrex@gmail.com>
This commit is contained in:
James 'zofrex' Sanderson 2021-10-13 08:55:03 +01:00
parent acf5a2c955
commit c3b0310315

View file

@ -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