From b7c874f81a1ceccc7e35c9bf4a5efff6ab1ff48a Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 5 May 2016 16:55:18 -0400 Subject: [PATCH] enforce required 'required' in docs --- hacking/module_formatter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py index 07a9c540c16..7afba19da9d 100755 --- a/hacking/module_formatter.py +++ b/hacking/module_formatter.py @@ -289,6 +289,8 @@ def process_module(module, options, env, template, outputname, module_map, alias del doc['options'][k]['version_added'] if not 'description' in doc['options'][k]: raise AnsibleError("Missing required description for option %s in %s " % (k, module)) + if not 'requried' in doc['options'][k]: + raise AnsibleError("Missing required 'required' for option %s in %s " % (k, module)) if not isinstance(doc['options'][k]['description'],list): doc['options'][k]['description'] = [doc['options'][k]['description']]