mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Warn reserved (#20567)
* removed unused vars * added warning when using reserved vars fixes #4816 * cleanup
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user