Files
matrix-docker-ansible-deploy/roles/custom
Slavi Pantaleev bd8a79c974 Fix "'list object' has no attribute 'keys'" in deprecation checks
The variables holding matched deprecated variable names used to be
dictionaries (built via `vars | dict2items | ... | items2dict`), so
calling `.keys()` on them was correct.

Since a1f6ee4dc9, they are lists produced
by the `ansible.builtin.varnames` lookup, but 15 of the messages
consuming them were left calling `.keys()`.

The failing tasks are gated behind a `| length > 0` condition, so only
people who actually still carry one of these deprecated variables would
hit this. Such people were greeted by a cryptic templating error instead
of the message telling them what to rename or remove.

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5491

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 17:14:01 +03:00
..