bug: It's possible to indicated a Default Prefix Size bigger than the resources associated to a Resource Pool #5489
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
type/bug
Something isn't working as expected
Component
No response
Infrahub version
1.1.2
Current Behavior
It is currently possible to create a PrefixPool with a default prefixlen bigger than the resources allocated to it
If we end up using this Resource Pool with the SDK, without indicating a prefix_length, the allocation will fail with :
Expected Behavior
I expect at least a warning indicating that the
Default Prefix Type
is too big for this resource.Steps to Reproduce
With infrahub demo-schema
Additional Information
No response
The text was updated successfully, but these errors were encountered: