mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-23 01:04:51 +01:00
fix(dcim): Correct type check for ConsolePort in GraphQL mixin
Fixes a typo in the `resolve_type` method where `ConsolePortType` was mistakenly referenced instead of `ConsolePort`. Ensures the correct GraphQL type is returned for ConsolePort instances. Fixes #21478
This commit is contained in:
@@ -119,7 +119,7 @@ class ConnectedEndpointType:
|
||||
def resolve_type(cls, instance, info: Info):
|
||||
if type(instance) is CircuitTermination:
|
||||
return CircuitTerminationType
|
||||
if type(instance) is ConsolePortType:
|
||||
if type(instance) is ConsolePort:
|
||||
return ConsolePortType
|
||||
if type(instance) is ConsoleServerPort:
|
||||
return ConsoleServerPortType
|
||||
|
||||
Reference in New Issue
Block a user