Merge pull request #2035 from ches/ansible-inventory-directories

Ansible inventory can be a directory, not just a file
This commit is contained in:
Mitchell Hashimoto 2013-08-09 11:03:52 -07:00
commit 15142704eb
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ module VagrantPlugins
# Validate the existence of the inventory_file, if specified
if inventory_file
expanded_path = Pathname.new(inventory_file).expand_path(machine.env.root_path)
if !expanded_path.file?
unless expanded_path.file? || expanded_path.directory?
errors << I18n.t("vagrant.provisioners.ansible.inventory_file_path_invalid",
:path => expanded_path)
end