Просмотр исходного кода

Merge pull request #21479 from netbox-community/21478-graphql-union-type-resolution-for-connected-endpoints

Fixes #21478: Fix GraphQL connected endpoint type resolution for Console Ports
bctiemann 21 часов назад
Родитель
Сommit
bb1a44d35b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/dcim/graphql/gfk_mixins.py

+ 1 - 1
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