mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-01 13:59:09 -07:00
Bump deprecation for include to 2.12 (#44230)
This commit is contained in:
parent
4c62722675
commit
0beaea22a4
2 changed files with 6 additions and 6 deletions
|
@ -226,10 +226,10 @@ class Task(Base, Conditional, Taggable, Become):
|
|||
# pre-2.0 syntax allowed variables for include statements at the top level of the task,
|
||||
# so we move those into the 'vars' dictionary here, and show a deprecation message
|
||||
# as we will remove this at some point in the future.
|
||||
if action in ('include', 'include_tasks') and k not in self._valid_attrs and k not in self.DEPRECATED_ATTRIBUTES:
|
||||
if action in ('include',) and k not in self._valid_attrs and k not in self.DEPRECATED_ATTRIBUTES:
|
||||
display.deprecated("Specifying include variables at the top-level of the task is deprecated."
|
||||
" Please see:\nhttps://docs.ansible.com/ansible/playbooks_roles.html#task-include-files-and-encouraging-reuse\n\n"
|
||||
" for currently supported syntax regarding included files and variables", version="2.7")
|
||||
" for currently supported syntax regarding included files and variables", version="2.12")
|
||||
new_ds['vars'][k] = v
|
||||
elif C.INVALID_TASK_ATTRIBUTE_FAILED or k in self._valid_attrs:
|
||||
new_ds[k] = v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue