Project client and proc mapper fixes

Default the options for default provider so an options value is not
required when calling. The index for the proc lookup should use the key
method, not index.
This commit is contained in:
Chris Roberts 2023-06-05 17:32:14 -07:00
parent fd617c494f
commit 8e26495189
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ module VagrantPlugins
resp.path
end
def default_provider(opts)
def default_provider(opts={})
req = ::Hashicorp::Vagrant::Sdk::Project::DefaultProviderRequest.new(
exclude: opts.fetch(:exclude, []),
force_default: opts.fetch(:force_default, true),

View File

@ -19,7 +19,7 @@ module VagrantPlugins
end
# If this is already stored, return existing ID
idx = @stored.index(value)
idx = @stored.key(value)
return idx if idx
# Create a new ID and store