Skip to content

Commit

Permalink
Merge pull request #220 from vinay-satish/zei/update_file_system_copy_to
Browse files Browse the repository at this point in the history
Update FileSystem.copy_to
  • Loading branch information
PrajaktaPurohit committed Jan 3, 2023
2 parents 6018507 + 84a6a13 commit 4e9ee82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chef/resource/chef_mirror.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def copy_to(src_root, dest_root)
# Copy!
path = Chef::ChefFS::FilePattern.new("/#{new_resource.path}")
ui = CopyListener.new(self)
error = Chef::ChefFS::FileSystem.copy_to(path, src_root, dest_root, nil, options, ui, proc { |p| p.path })
error, _result = Chef::ChefFS::FileSystem.copy_to(path, src_root, dest_root, nil, options, ui, proc { |p| p.path })

if error
raise "Errors while copying:#{ui.errors.map { |e| "#{e}\n" }.join("")}"
Expand Down

0 comments on commit 4e9ee82

Please sign in to comment.