From 6dc1eb23b448b17a417664790e1bdaee1041bfe1 Mon Sep 17 00:00:00 2001 From: Heather Lanigan Date: Thu, 6 Jun 2024 12:01:36 -0400 Subject: [PATCH] fix(application): allow both placement and constraints together. Some constraints and placement details can conflict with each other but not all. Specifying memory size and to use a specific machine doesn't work. Spaces and placement can coexist however. Let the jujud decide how to resolve conflicts between placement and constraints. --- internal/provider/resource_machine.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/provider/resource_machine.go b/internal/provider/resource_machine.go index 7e7f9085..2d0005d2 100644 --- a/internal/provider/resource_machine.go +++ b/internal/provider/resource_machine.go @@ -181,7 +181,6 @@ func (r *machineResource) Schema(_ context.Context, req resource.SchemaRequest, Validators: []validator.String{ stringvalidator.ConflictsWith(path.Expressions{ path.MatchRoot(SSHAddressKey), - path.MatchRoot(ConstraintsKey), }...), }, },