mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
dont follow symlinks for inventories
now symlink dir is checked for locality of group/host_vars fixes #31195
This commit is contained in:
parent
852d457549
commit
f00d47fac0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue