Skip to content

Commit

Permalink
Merge pull request #645 from tuxmea/puppet8
Browse files Browse the repository at this point in the history
Use File.exist? instead of File.exists?
  • Loading branch information
tuxmea authored Feb 16, 2024
2 parents 4d9f46c + 595dafc commit f24000b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/mcollective/agent/r10k.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class R10k<RPC::Agent
action act do
validate :path, :shellsafe
path = request[:path]
reply.fail "Path not found #{path}" unless File.exists?(path)
reply.fail "Path not found #{path}" unless File.exist?(path)
return unless reply.statuscode == 0
lock do
run_cmd act, path
Expand Down

0 comments on commit f24000b

Please sign in to comment.