Symbolize and stringify keys in options hash
This commit is contained in:
parent
56a8adb7a3
commit
1699c92eec
|
@ -160,6 +160,9 @@ module Vagrant
|
||||||
# Extra env keys are the remaining opts
|
# Extra env keys are the remaining opts
|
||||||
extra_env = opts.dup
|
extra_env = opts.dup
|
||||||
|
|
||||||
|
# Convert the extra keys back to strings
|
||||||
|
extra_env = extra_env.inject({}) { |h,(k,v)| h[k.to_s] = v; h }
|
||||||
|
|
||||||
# Create a deterministic ID for this machine
|
# Create a deterministic ID for this machine
|
||||||
vf = nil
|
vf = nil
|
||||||
vf = @env.vagrantfile_name[0] if @env.vagrantfile_name
|
vf = @env.vagrantfile_name[0] if @env.vagrantfile_name
|
||||||
|
|
|
@ -80,6 +80,9 @@ module VagrantPlugins
|
||||||
acc
|
acc
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Symbolize all keys
|
||||||
|
opts = opts.inject({}) { |h,(k,v)| h[k.to_sym] = v; h }
|
||||||
|
|
||||||
vm.action(:package, **opts)
|
vm.action(:package, **opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue