Commit 91c5c9da by jctanner

Merge pull request #5465 from deonbredenhann/false_mandatory_variable

Treat a False mandatory variable as defined.
parents 09f7b11d c85aac8b
......@@ -76,8 +76,11 @@ def skipped(*a, **kw):
def mandatory(a):
''' Make a variable mandatory '''
if not a:
try:
a
except NameError:
raise errors.AnsibleFilterError('Mandatory variable not defined.')
else:
return a
def bool(a):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment