diff options
author | Adrian Likins <alikins@redhat.com> | 2016-12-06 14:27:14 -0500 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2016-12-06 15:20:19 -0500 |
commit | e3fa0d9026afa0fb090ac90cd2450a0790bd796f (patch) | |
tree | 4130dc7a03933493ef39cd086b3f529de8fde5b8 | |
parent | c9f34ea5faae82beb2bd51ebcbd78595d4c1c77d (diff) | |
download | ansible-e3fa0d9026afa0fb090ac90cd2450a0790bd796f.tar.gz |
fix docs on related to remove of core/extras
-rwxr-xr-x | hacking/module_formatter.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py index 6e84cada28..fd5fe3fac1 100755 --- a/hacking/module_formatter.py +++ b/hacking/module_formatter.py @@ -143,8 +143,11 @@ def list_modules(module_dir, depth=0): if module_path.endswith('__init__.py'): continue category = categories - mod_path_only = os.path.dirname(module_path[len(module_dir) + 1:]) + mod_path_only = module_path # Start at the second directory because we don't want the "vendor" + + mod_path_only = os.path.dirname(module_path[len(module_dir):]) + # directories (core, extras) for new_cat in mod_path_only.split('/')[1:]: if new_cat not in category: @@ -373,7 +376,6 @@ def process_category(category, categories, options, env, template, outputname): deprecated = [] core = [] for module in module_map.keys(): - if isinstance(module_map[module], dict): for mod in (m for m in module_map[module].keys() if m in module_info): if mod.startswith("_"): |