ansible-doc: fix exception for required field
This commit is contained in:
parent
de8c7c22d2
commit
fd3c92504a
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ class DocCLI(CLI):
|
|||
|
||||
required = opt.pop('required', False)
|
||||
if not isinstance(required, bool):
|
||||
raise("Incorrect value for 'Required', a boolean is needed.: %s" % required)
|
||||
raise AnsibleError("Incorrect value for 'Required', a boolean is needed.: %s" % required)
|
||||
if required:
|
||||
opt_leadin = "="
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue