Skip to content

Commit 7c5b9b9

Browse files
committed
remove conflict due to api requirements
1 parent a80c0f7 commit 7c5b9b9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/fleet/integration_policy/schema.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66

77
"github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes"
88
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
9-
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
109
"github.com/hashicorp/terraform-plugin-framework/attr"
1110
"github.com/hashicorp/terraform-plugin-framework/path"
1211
"github.com/hashicorp/terraform-plugin-framework/resource"
@@ -57,16 +56,12 @@ func getSchemaV1() schema.Schema {
5756
"agent_policy_id": schema.StringAttribute{
5857
Description: "ID of the agent policy.",
5958
Optional: true,
60-
Validators: []validator.String{
61-
stringvalidator.ConflictsWith(path.Root("agent_policy_ids").Expression()),
62-
},
6359
},
6460
"agent_policy_ids": schema.ListAttribute{
6561
Description: "List of agent policy IDs.",
6662
ElementType: types.StringType,
6763
Optional: true,
6864
Validators: []validator.List{
69-
listvalidator.ConflictsWith(path.Root("agent_policy_ids").Expression()),
7065
listvalidator.SizeAtLeast(1),
7166
},
7267
},

0 commit comments

Comments
 (0)