From e84b062393bb744a25b022b4f74b18ca36551e3e Mon Sep 17 00:00:00 2001 From: Martin Hauser Date: Wed, 18 Feb 2026 23:19:36 +0100 Subject: [PATCH] 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 --- netbox/dcim/graphql/gfk_mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/graphql/gfk_mixins.py b/netbox/dcim/graphql/gfk_mixins.py index 8350f664f..76cc69e29 100644 --- a/netbox/dcim/graphql/gfk_mixins.py +++ b/netbox/dcim/graphql/gfk_mixins.py @@ -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