From 7798add2962314016aa155aea0822e0c59bdc193 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Fri, 28 Sep 2018 17:00:41 -0700 Subject: [PATCH] Ensure log is only printed if box has Vagrantfile --- lib/vagrant/vagrantfile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/vagrantfile.rb b/lib/vagrant/vagrantfile.rb index 0c5f871e9..1bf64750e 100644 --- a/lib/vagrant/vagrantfile.rb +++ b/lib/vagrant/vagrantfile.rb @@ -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