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:
parent
ef52ac4203
commit
e84b062393
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue