Skip to content

Commit 7789968

Browse files
fix(cisco-live-2024): remove tenant name validation (#150)
The tenant name validation is not working when we pass the name parameter as a var
1 parent 1a60bda commit 7789968

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

provider/internal/msp/msp_tenant/resource.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ import (
66
cdoClient "github.com/CiscoDevnet/terraform-provider-cdo/go-client"
77
"github.com/CiscoDevnet/terraform-provider-cdo/go-client/msp/tenants"
88
"github.com/CiscoDevnet/terraform-provider-cdo/internal/util"
9-
"github.com/CiscoDevnet/terraform-provider-cdo/validators"
109
"github.com/hashicorp/terraform-plugin-framework/resource"
1110
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1211
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
13-
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
1412
"github.com/hashicorp/terraform-plugin-framework/types"
1513
"github.com/hashicorp/terraform-plugin-log/tflog"
1614
)
@@ -35,10 +33,7 @@ func (*TenantResource) Schema(ctx context.Context, request resource.SchemaReques
3533
},
3634
"name": schema.StringAttribute{
3735
MarkdownDescription: "Name of the tenant",
38-
Validators: []validator.String{
39-
validators.NewCdoTenantValidator(),
40-
},
41-
Required: true,
36+
Required: true,
4237
PlanModifiers: []planmodifier.String{
4338
PreventUpdatePlanModifier{}, // Prevent updates to name
4439
},

0 commit comments

Comments
 (0)