Skip to content

Commit

Permalink
azurerm_key_vault_key - ForceNew when expiration_date is removed …
Browse files Browse the repository at this point in the history
…from the config file (hashicorp#23327)
  • Loading branch information
mbfrahry authored Sep 20, 2023
1 parent 304b81e commit 6e29679
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/services/keyvault/key_vault_key_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ func resourceKeyVaultKey() *pluginsdk.Resource {

"tags": tags.Schema(),
},

CustomizeDiff: pluginsdk.CustomDiffWithAll(
pluginsdk.ForceNewIfChange("expiration_date", func(ctx context.Context, old, new, meta interface{}) bool {
return old.(string) != "" && new.(string) == ""
}),
),
}
}

Expand Down

0 comments on commit 6e29679

Please sign in to comment.