Skip to content

Commit

Permalink
[MiqGenericMountSession] Support @byte_count in #download_single
Browse files Browse the repository at this point in the history
  • Loading branch information
NickLaMuro committed Nov 2, 2018
1 parent fd4df69 commit 9416cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gems/pending/util/mount/miq_generic_mount_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def download_single(remote_file, local_file)
end

logger.info("#{log_header} Copying file [#{relpath}] to [#{local_file}]...")
IO.copy_stream(relpath, local_file)
IO.copy_stream(relpath, local_file, byte_count)
logger.info("#{log_header} Copying file [#{relpath}] to [#{local_file}] complete")
rescue => err
msg = "Downloading [#{remote_file}] to [#{local_file}], failed due to error: '#{err.message}'"
Expand Down

0 comments on commit 9416cd2

Please sign in to comment.