Skip to content

Commit

Permalink
Merge pull request #19636 from d-m-u/fixing_requires_i_just_broke
Browse files Browse the repository at this point in the history
Add back missing requires for rubyzip

(cherry picked from commit 43306a5)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1783403
  • Loading branch information
jrafanie authored and simaishi committed Dec 13, 2019
1 parent fbeb6ea commit 642cc87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/vmdb/util.rb
Expand Up @@ -96,6 +96,7 @@ def self.log_duration_gz(filename)
end

def self.zip_logs(zip_filename, dirs, userid = "system")
require 'zip/filesystem'
zip_dir = Rails.root.join("data", "user", userid)
FileUtils.mkdir_p(zip_dir) unless File.exist?(zip_dir)

Expand Down
2 changes: 2 additions & 0 deletions spec/lib/vmdb/util_spec.rb
Expand Up @@ -123,6 +123,8 @@ def self.assert_zip_entry_from_path(expected_entry, path)
end

context ".add_zip_entry(private)" do
require 'zip/filesystem'

let(:origin_file) { Tempfile.new 'origin' }
let(:symlink_level_1) { create_temp_symlink 'symlink_level_1', origin_file.path }
let(:symlink_level_2) { create_temp_symlink 'symlink_level_2', symlink_level_1 }
Expand Down

0 comments on commit 642cc87

Please sign in to comment.