Skip to content

Commit

Permalink
Merge pull request #198 from agrare/fix_miq_tempfile_kwargs
Browse files Browse the repository at this point in the history
Fix MiqTempfile initialize kwargs error
  • Loading branch information
Fryguy authored Sep 19, 2024
2 parents 5ddb637 + 7ca3667 commit d8d2bd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/miq_tempfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ class MiqTempfile < DelegateClass(Tempfile)
# TODO: share this definition with appliance console code.
MIQ_TMP_DIR = '/var/www/miq_tmp'.freeze

def initialize(basename, *options)
def initialize(basename, **options)
if File.directory?(MIQ_TMP_DIR)
super(Tempfile.new(basename, MIQ_TMP_DIR, *options))
super(Tempfile.new(basename, MIQ_TMP_DIR, **options))
else
super(Tempfile.new(basename, *options))
super(Tempfile.new(basename, **options))
end
end
end

0 comments on commit d8d2bd4

Please sign in to comment.