Lookup plugin py_pkgs breaks when there are empty yml files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Medium
|
Kevin Carter | ||
Kilo |
Fix Released
|
Medium
|
Jesse Pretorius | ||
Trunk |
Fix Released
|
Medium
|
Kevin Carter |
Bug Description
PLAY [Build new repo packages for a given release] *******
TASK: [Create a build report for all known packages within a release] *********
fatal: [test1-
File "/opt/rpc-
local_
File "/opt/rpc-
self.
File "/opt/rpc-
for key, values in loaded_
AttributeError: 'NoneType' object has no attribute 'items'
"
This was caused because I was testing a new role that had empty yml files. The role had been created using ansible-galaxy init and so there was a vars/main.yml and defaults/main.yml file in the role. No vars had been added to the role and so parsing them for yaml returned None.
I think this bug raises two issues:
1. the plugin cannot deal with empty yaml files.
2. the plugin contains no debug lines when the verbose flag is used.
Changed in openstack-ansible: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → 11.0.3 |
Changed in openstack-ansible: | |
assignee: | nobody → Kevin Carter (kevin-carter) |
milestone: | 11.0.3 → 11.0.4 |
status: | Confirmed → In Progress |
Changed in openstack-ansible: | |
status: | In Progress → Fix Committed |
Fix proposed to branch: kilo /review. openstack. org/193457
Review: https:/