summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2014-10-27 15:52:56 -0700
committerBrian Coca <bcoca@ansible.com>2014-10-27 15:54:41 -0700
commitb3b356480da93d9266a9a846c364b2a74f4d0085 (patch)
tree9d4a5fd7d4edf6e0554f13c7901f0594026c47a8 /bin
parent7ea84d74994f73361c889b3bb71d558a01234275 (diff)
downloadansible-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-xbin/ansible-doc4
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)