diff options
Diffstat (limited to 'lib/chef/provider/service/simple.rb')
-rw-r--r-- | lib/chef/provider/service/simple.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/simple.rb b/lib/chef/provider/service/simple.rb index 81ac970b87..7c81eac047 100644 --- a/lib/chef/provider/service/simple.rb +++ b/lib/chef/provider/service/simple.rb @@ -145,7 +145,7 @@ class Chef Chef::Log.debug "#{@new_resource} attempting to match '#{@new_resource.pattern}' (#{r.inspect}) against process list" begin shell_out!(ps_cmd).stdout.each_line do |line| - if r.match(line) + if r.match?(line) @current_resource.running true break end |