diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-01-26 08:21:19 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-01-26 08:37:17 -0800 |
commit | dd759fa7e44214c12e892a157264779423f3a68c (patch) | |
tree | 6948ea98f29289b4003488911eeaac56600d020d /lib/chef/dsl/reboot_pending.rb | |
parent | f27f8f1781695d557b71298d483d440439671936 (diff) | |
download | chef-dd759fa7e44214c12e892a157264779423f3a68c.tar.gz |
Replace deprecated File.exists? with File.exist? in more places
Just some boring cleanup
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/dsl/reboot_pending.rb')
-rw-r--r-- | lib/chef/dsl/reboot_pending.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/dsl/reboot_pending.rb b/lib/chef/dsl/reboot_pending.rb index 19d3a6b0bd..5a6f8ee219 100644 --- a/lib/chef/dsl/reboot_pending.rb +++ b/lib/chef/dsl/reboot_pending.rb @@ -47,7 +47,7 @@ class Chef registry_key_exists?('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending') elsif platform?("ubuntu") # This should work for Debian as well if update-notifier-common happens to be installed. We need an API for that. - File.exists?("/var/run/reboot-required") + File.exist?("/var/run/reboot-required") else false end |