Fix validate calls to provisioners
This commit is contained in:
parent
05ae297fd2
commit
e5c2f38d7c
|
@ -135,7 +135,7 @@ module Vagrant
|
||||||
if prov.shortcut == :chef_server
|
if prov.shortcut == :chef_server
|
||||||
errors.add(I18n.t("vagrant.config.vm.provisioner_chef_server_changed"))
|
errors.add(I18n.t("vagrant.config.vm.provisioner_chef_server_changed"))
|
||||||
else
|
else
|
||||||
prov.validate(errors)
|
prov.validate(env, errors)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,7 +48,7 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
# Pass on validation to the provisioner config
|
# Pass on validation to the provisioner config
|
||||||
config.validate(errors) if config
|
config.validate(env, errors) if config
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue