Skip to content

Commit

Permalink
ForceNew when expiration_date is removed from the config
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfrahry committed Sep 19, 2023
1 parent 895a322 commit b6cc18c
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 b6cc18c

Please sign in to comment.