plugin_formatter: Check if docs are present for given plugin (#53743)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/54080/head
Abhijeet Kasurde 5 years ago committed by GitHub
parent 31ceba7fd8
commit 943946ec9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -321,6 +321,10 @@ def get_plugin_info(module_dir, limit_to=None, verbose=False):
if module_categories:
primary_category = module_categories[0]
if not doc:
display.error("*** ERROR: DOCUMENTATION section missing for %s. ***" % module_path)
continue
if 'options' in doc and doc['options'] is None:
display.error("*** ERROR: DOCUMENTATION.options must be a dictionary/hash when used. ***")
pos = getattr(doc, "ansible_pos", None)

Loading…
Cancel
Save