From 1aab41e7fea7991ccb4ac692667326187e78ef18 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Mon, 29 May 2023 19:45:27 -0400 Subject: [PATCH] QA: 'name' isn't immutable, so make a copy --- tests/vagrant/funcs.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/vagrant/funcs.rb b/tests/vagrant/funcs.rb index b4f485cf..b304e242 100644 --- a/tests/vagrant/funcs.rb +++ b/tests/vagrant/funcs.rb @@ -8,6 +8,7 @@ ##### def use_preloaded_box(obj, name, preloaded_dir=".") + obj.vm.box = String.new(name) _name=name.sub! '/','-' # ubuntu/bionic64 => ubuntu-bionic64 if File.file?("#{preloaded_dir}/preloaded/preloaded-#{_name}.box") # box name needs to be unique on the system @@ -17,8 +18,6 @@ def use_preloaded_box(obj, name, preloaded_dir=".") # do not update additions when booting this machine obj.vbguest.auto_update = false end - else - obj.vm.box = name end end