Ensure log is only printed if box has Vagrantfile

This commit is contained in:
Brian Cain 2018-09-28 17:00:41 -07:00
parent 5520cf65d6
commit 7798add296
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ module Vagrant
@loader.set(box_config_key, box_vagrantfile)
local_keys.unshift(box_config_key)
config, config_warnings, config_errors = @loader.load(local_keys)
else
elsif box_vagrantfile && config.vm.ignore_box_vagrantfile
@logger.warn("Ignoring #{box.name} provided Vagrantfile inside box")
end
end