Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] EventEngine alert export crashes on any alert from a device that is a member of a device group #2229

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/nav/web/api/v1/alert_serializers.py
Expand Up @@ -136,7 +136,8 @@ def get_device_groups(obj):
"""Returns all the device groups for the netbox if any"""
try:
netbox = obj.netbox
return netbox.groups.values_list('id', flat=True) or None
values = netbox.groups.values_list('id', flat=True)
return list(values) if values else None
lunkwill42 marked this conversation as resolved.
Show resolved Hide resolved
except Exception:
pass

Expand Down