[2.4, API] 'NoneType' object has no attribute 'system_id' when querying for Audit Events
Bug #1749017 reported by
Newell Jensen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
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
~newell-jensen/maas:lp1749017
Merged
into
maas:master
- MAAS Lander: Approve
- Blake Rouse (community): Approve
-
Diff: 149 lines (+69/-13)2 files modifiedsrc/maasserver/api/events.py (+16/-8)
src/maasserver/api/tests/test_events.py (+53/-5)
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.