summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ansible/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/utils.py b/lib/ansible/utils.py
index 58b085a26f..47dbe411dd 100644
--- a/lib/ansible/utils.py
+++ b/lib/ansible/utils.py
@@ -486,7 +486,8 @@ def import_plugins(directory):
modules = {}
for path in glob.glob(os.path.join(directory, '*.py')):
name, ext = os.path.splitext(os.path.basename(path))
- modules[name] = imp.load_source(name, path)
+ if not name.startswith("_"):
+ modules[name] = imp.load_source(name, path)
return modules