diff options
| author | Brian Coca <bcoca@ansible.com> | 2014-10-27 15:52:56 -0700 |
|---|---|---|
| committer | Brian Coca <bcoca@ansible.com> | 2014-10-27 15:54:41 -0700 |
| commit | b3b356480da93d9266a9a846c364b2a74f4d0085 (patch) | |
| tree | 9d4a5fd7d4edf6e0554f13c7901f0594026c47a8 /bin | |
| parent | 7ea84d74994f73361c889b3bb71d558a01234275 (diff) | |
| download | ansible-b3b356480da93d9266a9a846c364b2a74f4d0085.tar.gz | |
added the ability to keep aliased and deprecated modules prefixed with
'_', they will be loaded after non prefixed modules are checked they can
be full modules or symlinks to existing ones (alias)
also updated ansible doc to ignore these, will eventually add selective
display
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/ansible-doc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ansible-doc b/bin/ansible-doc index d5143f33a1..8a7faadb24 100755 --- a/bin/ansible-doc +++ b/bin/ansible-doc @@ -225,11 +225,13 @@ def main(): # list all modules paths = utils.plugins.module_finder._get_paths() module_list = [] + deprecated_list = [] + module_aliases = {} for path in paths: # os.system("ls -C %s" % (path)) if os.path.isdir(path): for module in os.listdir(path): - if any(module.endswith(x) for x in BLACKLIST_EXTS): + if module.startswith('_') or any(module.endswith(x) for x in BLACKLIST_EXTS): continue module_list.append(module) |
