Add warning if machines provider was not found in disk provider config

opts
This commit is contained in:
Brian Cain 2019-11-19 13:33:04 -08:00
parent 3a2b4ddef2
commit 57fd731fbf
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 6 additions and 0 deletions

View File

@ -140,6 +140,12 @@ module VagrantPlugins
end
end
if @provider_config
if !@provider_config.keys.include?(machine.provider_name)
machine.env.ui.warn("Guest '#{machine.name}' using provider '#{machine.provider_name}' has provider specific config options for a provider other than '#{machine.provider_name}'. These provider config options will be ignored for this guest")
end
end
errors
end