Vagrantfile: Fix default inventory path.

Change to support multiple inventory path led to Vagrant environment not
getting a default group_vars in it's inventory path. Using sample as the
default path if none specified.

Fix issue #2541

Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
pull/2654/head
Ganesh Maharaj Mahalingam 2018-04-12 14:24:41 -07:00
parent 1967963702
commit afcd5997b9
1 changed files with 1 additions and 1 deletions

2
Vagrantfile vendored
View File

@ -54,7 +54,7 @@ end
$box = SUPPORTED_OS[$os][:box]
# if $inventory is not set, try to use example
$inventory = File.join(File.dirname(__FILE__), "inventory") if ! $inventory
$inventory = File.join(File.dirname(__FILE__), "inventory", "sample") if ! $inventory
# if $inventory has a hosts file use it, otherwise copy over vars etc
# to where vagrant expects dynamic inventory to be.