mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 10:43:14 +00:00
Complete removal/refactoring of conditional deprecations.
This commit is contained in:
@@ -165,6 +165,9 @@ def is_changed(result):
|
||||
|
||||
def check_conditional(conditional, basedir, inject, fail_on_undefined=False):
|
||||
|
||||
if conditional is None or conditional == '':
|
||||
return True
|
||||
|
||||
if isinstance(conditional, list):
|
||||
for x in conditional:
|
||||
if not check_conditional(x, basedir, inject, fail_on_undefined=fail_on_undefined):
|
||||
|
||||
Reference in New Issue
Block a user