Bug ID 1226167
Summary Patch to ansible adds reference to undefined name.
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.5
Hardware x86-64
OS openSUSE Leap 15.5
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee screening-team-bugs@suse.de
Reporter me@manueljacob.de
QA Contact qa-bugs@suse.de
Target Milestone ---
Found By ---
Blocker ---

How to reproduce

Ensure ansible version 2.9.27-150000.1.17.2 is installed.

% echo "{{ 'foo' | from_yaml }}" > test.j2
% ansible all -i "localhost," -c local -m template -a "src=test.j2 dest=./test"


Expected result

Ansible creates file `test` with content “foo”.


Actual result

Ansible fails with:

localhost | FAILED! => {
    "changed": false,
    "msg": "NameError: name 'yaml_load' is not defined"
}


Analysis

File `/usr/lib/python3.6/site-packages/ansible/plugins/filter/core.py` at line
222 refers to name `yaml_load` which is not defined. The reference was added by
the following patch:
https://build.opensuse.org/projects/SUSE:SLE-15-SP5:Update/packages/ansible/files/0001-Ensure-that-unsafe-is-more-difficult-to-lose-stable-.patch?expand=1


You are receiving this mail because: