summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-22 20:56:58 -0700
committerTim Smith <tsmith@chef.io>2018-03-22 20:56:58 -0700
commit5cee9c32d3bc7a03ba25a20ad4c85c5157d4049f (patch)
treeb033f727d6710e517b251974108ff8042c45d58c
parentf17440c2ee4e4df580b9aceb9c729d30e64d4ffb (diff)
downloadchef-5cee9c32d3bc7a03ba25a20ad4c85c5157d4049f.tar.gz
Make sure we return true in visudo_present helper
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/sudo.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/sudo.rb b/lib/chef/resource/sudo.rb
index ff561f2804..35678ac399 100644
--- a/lib/chef/resource/sudo.rb
+++ b/lib/chef/resource/sudo.rb
@@ -213,8 +213,8 @@ class Chef
end
def visudo_present?
- return if ::File.exist?(new_resource.visudo_path)
- Chef::Log.warn("The visudo binary cannot be found at '#{new_resource.visudo_path}'. Skipping sudoer file validation. If visudo is on this system you can specify the path using the 'visudo_path' property.")
+ return true if ::File.exist?(new_resource.visudo_binary)
+ Chef::Log.warn("The visudo binary cannot be found at '#{new_resource.visudo_binary}'. Skipping sudoer file validation. If visudo is on this system you can specify the path using the 'visudo_binary' property.")
end
end
end