dont follow symlinks for inventories

now symlink dir is checked for locality of group/host_vars

fixes #31195
pull/31319/head
Brian Coca 7 years ago committed by Brian Coca
parent 852d457549
commit f00d47fac0

@ -615,7 +615,7 @@ class CLI(with_metaclass(ABCMeta, object)):
self.options.inventory = [self.options.inventory] self.options.inventory = [self.options.inventory]
# Ensure full paths when needed # 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: else:
self.options.inventory = C.DEFAULT_HOST_LIST self.options.inventory = C.DEFAULT_HOST_LIST

Loading…
Cancel
Save