mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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
|
# 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)
|
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
|
continue
|
||||||
|
|
||||||
category = categories
|
category = categories
|
||||||
|
|
Loading…
Reference in a new issue