Ensure log is only printed if box has Vagrantfile
This commit is contained in:
parent
5520cf65d6
commit
7798add296
|
@ -203,7 +203,7 @@ module Vagrant
|
||||||
@loader.set(box_config_key, box_vagrantfile)
|
@loader.set(box_config_key, box_vagrantfile)
|
||||||
local_keys.unshift(box_config_key)
|
local_keys.unshift(box_config_key)
|
||||||
config, config_warnings, config_errors = @loader.load(local_keys)
|
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")
|
@logger.warn("Ignoring #{box.name} provided Vagrantfile inside box")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue