dont follow symlinks for inventories

now symlink dir is checked for locality of group/host_vars

fixes #31195
This commit is contained in:
Brian Coca 2017-10-03 14:54:25 -04:00 committed by Brian Coca
parent 852d457549
commit f00d47fac0

View file

@ -615,7 +615,7 @@ class CLI(with_metaclass(ABCMeta, object)):
self.options.inventory = [self.options.inventory]
# Ensure full paths when needed
self.options.inventory = [unfrackpath(opt) if ',' not in opt else opt for opt in self.options.inventory]
self.options.inventory = [unfrackpath(opt, follow=False) if ',' not in opt else opt for opt in self.options.inventory]
else:
self.options.inventory = C.DEFAULT_HOST_LIST