[2.4, API] 'NoneType' object has no attribute 'system_id' when querying for Audit Events

Bug #1749017 reported by Newell Jensen on 2018-02-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Critical
Newell Jensen

Bug Description

When trying to query for Audit Events:

# maas admin events query level=AUDIT
'NoneType' object has no attribute 'system_id'

This is due to the event_to_dict helper function in the events API not taking into account that node and user attributes on the event model can be null.

Related branches

Changed in maas:
milestone: none → 2.4.0alpha2
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers