mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user