plugin_formatter: Check if docs are present for given plugin (#53743)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>pull/4420/head
parent
31ceba7fd8
commit
943946ec9c
|
@ -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…
Reference in New Issue