From 7ca3667f3a59ba92255dc5a1897e090463e11c0d Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Thu, 19 Sep 2024 08:26:38 -0400 Subject: [PATCH] Fix MiqTempfile initialize kwargs error --- lib/miq_tempfile.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/miq_tempfile.rb b/lib/miq_tempfile.rb index 6d5c0f44..a925fe7e 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