1
0
Fork 0
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:
Rene Moser 2017-06-03 12:29:43 +02:00 committed by René Moser
parent de8c7c22d2
commit fd3c92504a

View file

@ -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: