Fix bad options

This commit is contained in:
Seth Vargo 2015-11-18 15:26:45 -08:00
parent d425193e42
commit c743d88ad6
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ module VagrantPlugins
# This validates the provisioner flags and raises an exception
# if there are invalid ones.
def validate_provisioner_flags!(options, argv)
if options[:provision_types].nil?
return
end
provisioner_names = Set.new
with_target_vms(argv) do |machine|
machine.config.vm.provisioners.map(&:name).each do |name|