1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Support nested modules with ANSIBLE_LIBRARY env var

This commit is contained in:
Matt Martz 2014-11-10 10:52:23 -06:00
parent 7812c70d3b
commit 4c2d06d2fe

View file

@ -127,7 +127,7 @@ class PluginLoader(object):
configured_paths = self.config.split(os.pathsep) configured_paths = self.config.split(os.pathsep)
for path in configured_paths: for path in configured_paths:
path = os.path.realpath(os.path.expanduser(path)) path = os.path.realpath(os.path.expanduser(path))
contents = glob.glob("%s/*" % path) contents = glob.glob("%s/*" % path) + glob.glob("%s/*/*" % path)
for c in contents: for c in contents:
if os.path.isdir(c) and c not in ret: if os.path.isdir(c) and c not in ret:
ret.append(c) ret.append(c)