Skip to content

Commit

Permalink
Remove leftover comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharon Nam authored and Sharon Nam committed Oct 25, 2024
1 parent c39647b commit 836ccfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
12 changes: 3 additions & 9 deletions internal/service/pinpoint/email_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const (

type resourceEmailTemplate struct {
framework.ResourceWithConfigure
// framework.WithImportByID
framework.WithImportByID
framework.WithTimeouts
}

Expand Down Expand Up @@ -147,11 +147,6 @@ func (r *resourceEmailTemplate) Create(ctx context.Context, req resource.CreateR
return
}

// resp.Diagnostics.Append(flex.Flatten(ctx, out, &plan)...)
// if resp.Diagnostics.HasError() {
// return
// }

plan.Arn = flex.StringToFramework(ctx, out.CreateTemplateMessageBody.Arn)
resp.Diagnostics.Append(resp.State.Set(ctx, plan)...)
}
Expand Down Expand Up @@ -199,9 +194,8 @@ func (r *resourceEmailTemplate) Update(ctx context.Context, req resource.UpdateR
if !old.TemplateName.Equal(new.TemplateName) ||
!old.Arn.Equal(new.Arn) ||
!old.EmailTemplate.Equal(new.EmailTemplate) {
in := &pinpoint.UpdateEmailTemplateInput{
// TemplateName: aws.String(old.TemplateName.ValueString()),
}
in := &pinpoint.UpdateEmailTemplateInput{}

resp.Diagnostics.Append(flex.Expand(ctx, &old, in, flex.WithFieldNameSuffix("Request"))...)
if resp.Diagnostics.HasError() {
return
Expand Down
7 changes: 0 additions & 7 deletions internal/service/pinpoint/email_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,6 @@ func TestAccPinpointEmailTemplate_update(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "email_template.0.subject", "update"),
),
},
// {
// ResourceName: resourceName,
// ImportState: true,
// ImportStateIdFunc: testAccEmailtemplateImportStateIDFunc(resourceName),
// ImportStateVerifyIdentifierAttribute: "template_name",
// ImportStateVerify: true,
// },
},
})
}
Expand Down

0 comments on commit 836ccfa

Please sign in to comment.