Skip to content

Commit bc6f627

Browse files
authored
Fixes HFID format in mutations IPAddressPoolGetResource and IPPrefixPoolGetResource (#5943)
1 parent 394912b commit bc6f627

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

backend/infrahub/graphql/mutations/resource_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from typing import TYPE_CHECKING, Any
44

5-
from graphene import Boolean, Field, InputField, InputObjectType, Int, Mutation, String
5+
from graphene import Boolean, Field, InputField, InputObjectType, Int, List, Mutation, String
66
from graphene.types.generic import GenericScalar
77
from typing_extensions import Self
88

@@ -30,7 +30,7 @@
3030

3131
class IPPrefixPoolGetResourceInput(InputObjectType):
3232
id = InputField(String(required=False), description="ID of the pool to allocate from")
33-
hfid = InputField(String(required=False), description="HFID of the pool to allocate from")
33+
hfid = InputField(List(of_type=String, required=False), description="HFID of the pool to allocate from")
3434
identifier = InputField(String(required=False), description="Identifier for the allocated resource")
3535
prefix_length = InputField(Int(required=False), description="Size of the prefix to allocate")
3636
member_type = InputField(String(required=False), description="Type of members for the newly created prefix")
@@ -40,7 +40,7 @@ class IPPrefixPoolGetResourceInput(InputObjectType):
4040

4141
class IPAddressPoolGetResourceInput(InputObjectType):
4242
id = InputField(String(required=False), description="ID of the pool to allocate from")
43-
hfid = InputField(String(required=False), description="HFID of the pool to allocate from")
43+
hfid = InputField(List(of_type=String, required=False), description="HFID of the pool to allocate from")
4444
identifier = InputField(String(required=False), description="Identifier for the allocated resource")
4545
prefix_length = InputField(
4646
Int(required=False), description="Size of the prefix mask to allocate on the new IP address"

changelog/+getresource.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixes HFID format in mutations `IPAddressPoolGetResource` and `IPPrefixPoolGetResource`

0 commit comments

Comments
 (0)