From fd3c92504a6c3388fb24cd978985f6d464886b8a Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Sat, 3 Jun 2017 12:29:43 +0200 Subject: [PATCH] ansible-doc: fix exception for required field --- lib/ansible/cli/doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index 950c20af76..5e7b39b9d2 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -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: