Skip to content

Commit

Permalink
renames device_role to role for netbox v3.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhipfel committed Apr 19, 2024
1 parent ccdbaa6 commit 151215d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox_atlas_plugin/api/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def add_netbox_labels(self, obj):
if getattr(obj.device_type, "model", None) is not None:
self.__setitem__('model', obj.device_type.model)

if getattr(obj, "device_role", None) is not None:
if getattr(obj, "role", None) is not None:
self.__setitem__('role', obj.device_role.slug)

if getattr(obj, "site", None) is not None:
Expand Down

0 comments on commit 151215d

Please sign in to comment.