Skip to content

Commit a52c6a0

Browse files
committed
also need to rewind the rack input to write it to the file
1 parent b36ecbc commit a52c6a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎chef-server-api/app/models/sandbox_file.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def load_sandbox
9999

100100
def commit_stringio_to(destination_file_path)
101101
Tempfile.open("sandbox") do |src|
102+
@input.rewind
102103
src.write(@input.read)
103104
src.close
104105
Chef::Log.info("upload_checksum: move #{src.path} to #{destination_file_path}")

0 commit comments

Comments
 (0)