From 603c4b6fcffe8139bbca73b69948b67b291a9b8e Mon Sep 17 00:00:00 2001 From: Norbert Dopjera Date: Thu, 22 Feb 2024 18:49:07 +0100 Subject: [PATCH] fix(warehouse) - transactional import detect existing credentials (#88) --- internal/warehouse/transactional_warehouse.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/warehouse/transactional_warehouse.go b/internal/warehouse/transactional_warehouse.go index cfd6c61..9a81998 100644 --- a/internal/warehouse/transactional_warehouse.go +++ b/internal/warehouse/transactional_warehouse.go @@ -102,9 +102,6 @@ func (r *TransactionalWarehouseResource) Schema(ctx context.Context, req resourc Validators: []validator.String{ stringvalidator.OneOf("POSTGRES", "MYSQL", "SQL-SERVER"), }, - PlanModifiers: []planmodifier.String{ - stringplanmodifier.RequiresReplaceIfConfigured(), - }, }, "collector_uuid": schema.StringAttribute{ Required: true, @@ -335,7 +332,6 @@ func (r *TransactionalWarehouseResource) ImportState(ctx context.Context, req re resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("uuid"), idsImported[0])...) resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("credentials").AtName("connection_uuid"), idsImported[1])...) resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("collector_uuid"), idsImported[2])...) - resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("credentials"), TransactionalCredentials{})...) } else { resp.Diagnostics.AddError("Unexpected Import Identifier", fmt.Sprintf( "Expected import identifier with format: ,,. Got: %q", req.ID),