Skip to content

Commit

Permalink
fix(cisco-live-2024): remove tenant name validation
Browse files Browse the repository at this point in the history
The tenant name validation is not working when we pass the name parameter as a var
  • Loading branch information
siddhuwarrier committed Nov 13, 2024
1 parent 1a60bda commit cd0254c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions provider/internal/msp/msp_tenant/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import (
cdoClient "github.com/CiscoDevnet/terraform-provider-cdo/go-client"
"github.com/CiscoDevnet/terraform-provider-cdo/go-client/msp/tenants"
"github.com/CiscoDevnet/terraform-provider-cdo/internal/util"
"github.com/CiscoDevnet/terraform-provider-cdo/validators"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-log/tflog"
)
Expand All @@ -35,10 +33,7 @@ func (*TenantResource) Schema(ctx context.Context, request resource.SchemaReques
},
"name": schema.StringAttribute{
MarkdownDescription: "Name of the tenant",
Validators: []validator.String{
validators.NewCdoTenantValidator(),
},
Required: true,
Required: true,
PlanModifiers: []planmodifier.String{
PreventUpdatePlanModifier{}, // Prevent updates to name
},
Expand Down

0 comments on commit cd0254c

Please sign in to comment.