mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Warn reserved (#20567)
* removed unused vars * added warning when using reserved vars fixes #4816 * cleanup
This commit is contained in:
parent
b3b598c835
commit
f4b6b72c5b
3 changed files with 83 additions and 3 deletions
|
@ -36,6 +36,7 @@ from ansible.plugins.callback import CallbackBase
|
|||
from ansible.template import Templar
|
||||
from ansible.utils.helpers import pct_to_int
|
||||
from ansible.vars.hostvars import HostVars
|
||||
from ansible.vars.reserved import warn_if_reserved
|
||||
|
||||
try:
|
||||
from __main__ import display
|
||||
|
@ -209,6 +210,7 @@ class TaskQueueManager:
|
|||
self.load_callbacks()
|
||||
|
||||
all_vars = self._variable_manager.get_vars(loader=self._loader, play=play)
|
||||
warn_if_reserved(all_vars)
|
||||
templar = Templar(loader=self._loader, variables=all_vars)
|
||||
|
||||
new_play = play.copy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue