Warnings when running tox: "'NoneType' object has no attribute 'get'"

Bug #2038281 reported by Célestin Matte
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Status tracked in Bobcat
Antelope
In Progress
Low
Célestin Matte
Bobcat
Fix Released
Low
Célestin Matte
Yoga
In Progress
Low
Célestin Matte
Zed
In Progress
Low
Célestin Matte

Bug Description

When running tox, the following warnings appear:

WARNING Ignored exception from JinjaRule.<bound method AnsibleLintRule.matchtasks of jinja: Rule that looks inside jinja2 templates.> while processing ansible/roles/vitrage/tasks/precheck.yml (tasks): 'NoneType' object has no attribute 'get'
WARNING Ignored exception from JinjaRule.<bound method AnsibleLintRule.matchtasks of jinja: Rule that looks inside jinja2 templates.> while processing ansible/roles/prometheus/tasks/precheck.yml (tasks): 'NoneType' object has no attribute 'get'
WARNING Ignored exception from JinjaRule.<bound method AnsibleLintRule.matchtasks of jinja: Rule that looks inside jinja2 templates.> while processing ansible/roles/swift/tasks/precheck.yml (tasks): 'NoneType' object has no attribute 'get'
WARNING Ignored exception from JinjaRule.<bound method AnsibleLintRule.matchtasks of jinja: Rule that looks inside jinja2 templates.> while processing ansible/roles/designate/tasks/precheck.yml (tasks): 'NoneType' object has no attribute 'get'

Changed in kolla-ansible:
status: New → In Progress
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :
Changed in kolla-ansible:
importance: Undecided → Low
assignee: nobody → Célestin Matte (perdu)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/895736
Committed: https://opendev.org/openstack/kolla-ansible/commit/eec8b05914878f52858f37bbf675994e4e80d74b
Submitter: "Zuul (22348)"
Branch: master

commit eec8b05914878f52858f37bbf675994e4e80d74b
Author: Célestin Matte <email address hidden>
Date: Mon Sep 18 21:20:46 2023 +0200

    kolla_address: check correct error return value

    Unlike other methods such as resolve(), get() does not return an Undefined object, but None.
    This removes 4 ansible-lint warnings in various files calling kolla_address.

    Closes-Bug: #2038281

    Change-Id: I591a50512a954210f951c40a350ed4b9e1fc48ae

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/897171

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/897172

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/897173

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.