Skip to content

Commit

Permalink
(puppetlabsGH-813) Properly copy StringIO files with local transport
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklewis committed Apr 20, 2020
1 parent 8c30b4a commit 32cd58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bolt/transport/local/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def copy_file(source, dest)
if source.is_a?(StringIO)
Tempfile.create(File.basename(dest)) do |f|
f.write(source.read)
FileUtils.mv(t, dest)
FileUtils.mv(f, dest)
end
else
# Mimic the behavior of `cp --remove-destination`
Expand Down

0 comments on commit 32cd58c

Please sign in to comment.