Skip to content

Commit

Permalink
s/active/activate
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz authored Sep 4, 2024
1 parent deeaf43 commit 03be279
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func resourceCloudflareTeamsCertificateDelete(ctx context.Context, d *schema.Res
return diag.FromErr(fmt.Errorf("error deleting Teams Certificate with id %q: custom certificates must be deleted via the mTLS certificate manager api", d.Get("id")))
}

if d.Get("active").(bool) {
if d.Get("activate").(bool) {
return diag.FromErr(fmt.Errorf("error deleting Teams Certificate with id %q: certificate must be deactivated before it can be deleted", d.Get("id")))
} else {
_, err := client.TeamsDeactivateCertificate(ctx, accountID, d.Get("id").(string))
Expand Down

0 comments on commit 03be279

Please sign in to comment.