Skip to content

Commit

Permalink
Merge pull request #24 from grnet/netbox3_compatible
Browse files Browse the repository at this point in the history
Replace display_name for netbox v3.0.0
  • Loading branch information
hpanago authored Dec 13, 2023
2 parents 1b311dc + 0d4db78 commit dc0f74e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ All notable changes to this project are documented in this file.

## [Unreleased]

## [v1.3.0] (2023-09-04)

### Added

### Changed

- Changed 'display_name' field to 'display' since 'display_name' field
has been removed in Netbox 2.11.0

### Fixed

## [v1.2.0] (2020-02-21)
Expand Down
2 changes: 1 addition & 1 deletion bmcmanager/dcim/netbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_short_info(self, result):
return {
"id": result["id"],
"name": result["name"],
"display_name": result["display_name"],
"display": result["display"],
"serial": result["serial"],
"ipmi": result["custom_fields"]["IPMI"] or "unknown-address",
"manufacturer": result["device_type"]["manufacturer"]["slug"],
Expand Down

0 comments on commit dc0f74e

Please sign in to comment.