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

Complete removal/refactoring of conditional deprecations.

This commit is contained in:
Michael DeHaan 2014-01-03 19:23:19 -05:00
parent 8e5b7d3095
commit c41a23a35a

View file

@ -165,6 +165,9 @@ def is_changed(result):
def check_conditional(conditional, basedir, inject, fail_on_undefined=False): def check_conditional(conditional, basedir, inject, fail_on_undefined=False):
if conditional is None or conditional == '':
return True
if isinstance(conditional, list): if isinstance(conditional, list):
for x in conditional: for x in conditional:
if not check_conditional(x, basedir, inject, fail_on_undefined=fail_on_undefined): if not check_conditional(x, basedir, inject, fail_on_undefined=fail_on_undefined):