From 4c2d06d2feec0648498426e798a6dcd61cce1fa1 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Mon, 10 Nov 2014 10:52:23 -0600 Subject: [PATCH] Support nested modules with ANSIBLE_LIBRARY env var --- lib/ansible/utils/plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/plugins.py b/lib/ansible/utils/plugins.py index 0d050fd13d7..1955ade2379 100644 --- a/lib/ansible/utils/plugins.py +++ b/lib/ansible/utils/plugins.py @@ -127,7 +127,7 @@ class PluginLoader(object): configured_paths = self.config.split(os.pathsep) for path in configured_paths: 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: if os.path.isdir(c) and c not in ret: ret.append(c)