diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-22 20:56:27 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-22 20:56:27 -0700 |
commit | f17440c2ee4e4df580b9aceb9c729d30e64d4ffb (patch) | |
tree | 1ca41bfacf09abd7c388df2eec619b7db7bec387 | |
parent | d7a8d312dc53cd0325ae07ced1f426251f5bed8f (diff) | |
download | chef-f17440c2ee4e4df580b9aceb9c729d30e64d4ffb.tar.gz |
Match order to cookbook
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/sudo.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/chef/resource/sudo.rb b/lib/chef/resource/sudo.rb index e2425f811b..ff561f2804 100644 --- a/lib/chef/resource/sudo.rb +++ b/lib/chef/resource/sudo.rb @@ -119,14 +119,15 @@ class Chef end # default config prefix paths based on platform - def platform_config_prefix + # @return [String] + def config_prefix case node["platform_family"] when "smartos" "/opt/local/etc" - when "freebsd" - "/usr/local/etc" when "mac_os_x" "/private/etc" + when "freebsd" + "/usr/local/etc" else "/etc" end |