diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-05-28 17:03:19 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-06-23 09:12:04 -0700 |
commit | 5224b2955cd9e7739a09c303ab665142a031d53f (patch) | |
tree | 8146737c3387e3f77bcb6498c6bfe608ee119b66 | |
parent | 486c5e6794301271cb1ee029435467421bb2a498 (diff) | |
download | chef-5224b2955cd9e7739a09c303ab665142a031d53f.tar.gz |
Make sure file is properly scoped in cron_access
This was hitting the file resource not the file ruby class.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/cron_access.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/cron_access.rb b/lib/chef/resource/cron_access.rb index da91f8d6c4..58d046eee3 100644 --- a/lib/chef/resource/cron_access.rb +++ b/lib/chef/resource/cron_access.rb @@ -62,7 +62,7 @@ class Chef action :allow do description "Add the user to the cron.allow file." - allow_path = File.join(value_for_platform_family(CRON_PATHS), "cron.allow") + allow_path = ::File.join(value_for_platform_family(CRON_PATHS), "cron.allow") with_run_context :root do edit_resource(:template, allow_path) do |new_resource| @@ -79,7 +79,7 @@ class Chef action :deny do description "Add the user to the cron.deny file." - deny_path = File.join(value_for_platform_family(CRON_PATHS), "cron.deny") + deny_path = ::File.join(value_for_platform_family(CRON_PATHS), "cron.deny") with_run_context :root do edit_resource(:template, deny_path) do |new_resource| |