vagrant/lib/vagrant/config
Brian Cain 774e19b152 Disable loading identical Vagrantfile twice from same dir
Prior to this commit, if a user set the env var VAGRANT_HOME to be the
same directory where the project home is, Vagrant would load that file
twice and merge its config. This caused various provisioner and other
provider blocks to unexpectedly run twice. This commit updates the
config loader to look and see if the `:root` and `:home` procs are
equal, and if so, removes the `:home` object so that it isn't loaded and
duplicated. This commit however does not prevent duplicate loading if an
identical Vagrantfile exists in the home and project dir if those
locations are different.
2017-06-22 09:04:21 -07:00
..
v1 Use .key? instead of .has_key? 2015-01-05 18:29:01 -05:00
v2 Use .key? instead of .has_key? 2015-01-05 18:29:01 -05:00
loader.rb Disable loading identical Vagrantfile twice from same dir 2017-06-22 09:04:21 -07:00
v1.rb Unknown keys return a DummyConfig rather than OpenStruct 2013-02-28 00:16:43 -08:00
v2.rb V2 missing key returns a DummyConfig as well 2013-02-28 00:17:58 -08:00
version_base.rb Configuration loader can handle upgrading. 2012-06-23 19:56:31 -07:00