macwatch AttributeError when attempting to post events under NAV 4.3.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
High
|
Morten Brekkevold |
Bug Description
Under NAV 4.3.0, when the macwatch cron job tries to post an event about a watched mac, it crashes with a Python AttributeError, which is mailed back to the admin through crond.
It appears the problem is that the event posting code tries to extract a deviceid from a Netbox, which is no longer possible under the new db schema in NAV 4.3.
Traceback example:
Traceback (most recent call last):
File "/usr/lib/
main()
File "/usr/lib/
if post_event(
File "/usr/lib/
deviceid=
AttributeError: 'Netbox' object has no attribute 'device_id'
Changed in nav: | |
status: | Fix Committed → Fix Released |
fix here: https:/ /nav.uninett. no/hg/stable/ rev/994626ccea0 5