forked from openstack/kolla-ansible
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Fix testing inventory template due Ansible 2.16.14 breakage
Ansible 2.16.14 includes a fix for CVE-2024-11079 [1], which results in the following error: jinja2.exceptions.UndefinedError: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_host' This issue occurs because Ansible now includes `localhost` in `hostvars` without the `ansible_host` variable set, which unexpectedly breaks our test inventory rendering. This patch adds a filter to exclude `localhost` during the rendering process, as it is irrelevant for our purposes. [1] ansible/ansible#84353 Change-Id: Ie7ae47e5a624da31cf6cc5cd3c9239450487b8ed (cherry picked from commit 0298699)
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters