summaryrefslogtreecommitdiff
path: root/docs/bin
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2019-02-12 18:12:18 +0530
committerGitHub <noreply@github.com>2019-02-12 18:12:18 +0530
commita6ecbe7a4b82398001fb4baf1cc6db40f67496c3 (patch)
tree42dc237fcf8470e0c413a51a95b25a9a61a5dda9 /docs/bin
parent748c9acba7f2a97463e80544817d6e285f75e49a (diff)
downloadansible-a6ecbe7a4b82398001fb4baf1cc6db40f67496c3.tar.gz
Check metadata.status presence (#50416)
Generate error if metadata.status is empty or missing. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'docs/bin')
-rwxr-xr-xdocs/bin/plugin_formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/bin/plugin_formatter.py b/docs/bin/plugin_formatter.py
index 65d803faa9..11db00b6de 100755
--- a/docs/bin/plugin_formatter.py
+++ b/docs/bin/plugin_formatter.py
@@ -293,7 +293,7 @@ def get_plugin_info(module_dir, limit_to=None, verbose=False):
# use ansible core library to parse out doc metadata YAML and plaintext examples
doc, examples, returndocs, metadata = plugin_docs.get_docstring(module_path, fragment_loader, verbose=verbose)
- if metadata and 'removed' in metadata.get('status'):
+ if metadata and 'removed' in metadata.get('status', []):
continue
category = categories