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:
parent
8e5b7d3095
commit
c41a23a35a
1 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue