mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
Fix Rubocop issues
Signed-off-by: James 'zofrex' Sanderson <zofrex@gmail.com>
This commit is contained in:
parent
41ea0da4a9
commit
acf5a2c955
2 changed files with 2 additions and 2 deletions
|
@ -504,7 +504,7 @@ module Inspec::Resources
|
|||
|
||||
# search for the service
|
||||
|
||||
srv = /(^.*\/#{service_name}$)/.match(cmd.stdout)
|
||||
srv = %r{^.*/#{service_name}$)}.match(cmd.stdout)
|
||||
return nil if srv.nil? || srv[0].nil?
|
||||
|
||||
enabled = true
|
||||
|
|
|
@ -640,7 +640,7 @@ class MockLoader
|
|||
|
||||
if @platform && (@platform[:name] == "freebsd" && @platform[:release].to_f >= 10)
|
||||
mock_cmds.merge!(
|
||||
"service sendmail enabled" => cmd.call("service-sendmail-enabled"),
|
||||
"service sendmail enabled" => cmd.call("service-sendmail-enabled")
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue