mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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…
Reference in a new issue