Added Exception

This commit is contained in:
2025-12-03 13:27:05 +01:00
parent 4a4c3c741c
commit 3e02fc0190

View File

@@ -157,7 +157,8 @@ class TestVarsPassedAreUsed(unittest.TestCase):
or self._used_in_ansible_exprs(var_name, ansible_exprs)
)
if not used:
unused.append(var_name)
if var_name not in ['ansible_python_interpreter']:
unused.append(var_name)
if unused:
msg = (