diff options
author | Michael DeHaan <michael.dehaan@gmail.com> | 2012-09-06 18:46:15 -0400 |
---|---|---|
committer | Michael DeHaan <michael.dehaan@gmail.com> | 2012-09-06 18:46:15 -0400 |
commit | 2bf9a92bb62f879a78c1576ceb4584fec53b33fa (patch) | |
tree | 3c94ca274144b1282342e37e9314115e96bad8ad | |
parent | 6fb1884a03f9c5259aed5cd1673c223a69d7dde3 (diff) | |
download | ansible-0.7.tar.gz |
Don't load plugins starting with "_".0.7
-rw-r--r-- | lib/ansible/utils.py | 3 |
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 |