1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix for when conditional is a simple bool already

Fixes #1983.
This commit is contained in:
Daniel Hokka Zakrisson 2013-02-04 20:11:25 +01:00
parent 1becc665b2
commit c1b63d1500

View file

@ -145,6 +145,9 @@ def is_changed(result):
def check_conditional(conditional):
if not isinstance(conditional, basestring):
return conditional
def is_set(var):
return not var.startswith("$")