Skip to content

Commit 4ef2fea

Browse files
committed
cmdline-tool-tests(fix): Zip::File handling
JIRA: PHX-3194
1 parent f58b2ae commit 4ef2fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gooddata/models/model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def upload_multiple_data(data, project_blueprint, options = { :client => GoodDat
166166

167167
dir = Dir.mktmpdir
168168
begin
169-
Zip::File.open("#{dir}/upload.zip", Zip::File::CREATE) do |zip|
169+
Zip::File.open("#{dir}/upload.zip", create: true) do |zip|
170170
# TODO: make sure schema columns match CSV column names
171171
zip.get_output_stream('upload_info.json') { |f| f.puts JSON.pretty_generate(manifest) }
172172

0 commit comments

Comments
 (0)