Check metadata.status presence (#50416)
Generate error if metadata.status is empty or missing. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
748c9acba7
commit
a6ecbe7a4b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue