diff --git a/lib/miq_tempfile.rb b/lib/miq_tempfile.rb index 6d5c0f4..a925fe7 100644 --- a/lib/miq_tempfile.rb +++ b/lib/miq_tempfile.rb @@ -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