mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix static determination for include_tasks
An incorrect removal of a conditional resulted in include_tasks falling through to the old static detection mechanism incorrectly. This restores the previous conditional check. Fixes #31593
This commit is contained in:
parent
0371d0deda
commit
3ef4f7e847
1 changed files with 3 additions and 2 deletions
|
@ -133,8 +133,9 @@ def load_list_of_tasks(ds, play, block=None, role=None, task_include=None, use_h
|
||||||
# check to see if this include is dynamic or static:
|
# check to see if this include is dynamic or static:
|
||||||
# 1. the user has set the 'static' option to false or true
|
# 1. the user has set the 'static' option to false or true
|
||||||
# 2. one of the appropriate config options was set
|
# 2. one of the appropriate config options was set
|
||||||
|
if 'include_tasks' in task_ds:
|
||||||
is_static = False
|
is_static = False
|
||||||
if 'import_tasks' in task_ds:
|
elif 'import_tasks' in task_ds:
|
||||||
is_static = True
|
is_static = True
|
||||||
elif t.static is not None:
|
elif t.static is not None:
|
||||||
display.deprecated("The use of 'static' has been deprecated. "
|
display.deprecated("The use of 'static' has been deprecated. "
|
||||||
|
|
Loading…
Add table
Reference in a new issue