parent
15142704eb
commit
ac8b2c5047
|
@ -59,7 +59,7 @@ module VagrantPlugins
|
||||||
# Validate the existence of the inventory_file, if specified
|
# Validate the existence of the inventory_file, if specified
|
||||||
if inventory_file
|
if inventory_file
|
||||||
expanded_path = Pathname.new(inventory_file).expand_path(machine.env.root_path)
|
expanded_path = Pathname.new(inventory_file).expand_path(machine.env.root_path)
|
||||||
unless expanded_path.file? || expanded_path.directory?
|
if !expanded_path.exist?
|
||||||
errors << I18n.t("vagrant.provisioners.ansible.inventory_file_path_invalid",
|
errors << I18n.t("vagrant.provisioners.ansible.inventory_file_path_invalid",
|
||||||
:path => expanded_path)
|
:path => expanded_path)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue