Skip to content

Commit 4442142

Browse files
committed
revert hashicorp#28494 wait SDK to support nullable values to support removing
the expiration_date by an update
1 parent 2403588 commit 4442142

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

internal/services/keyvault/key_vault_secret_resource.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,6 @@ func resourceKeyVaultSecret() *pluginsdk.Resource {
101101

102102
"tags": tags.SchemaWithMax(15),
103103
},
104-
105-
CustomizeDiff: pluginsdk.CustomDiffWithAll(
106-
pluginsdk.ForceNewIfChange("expiration_date", func(ctx context.Context, oldVal, newVal interface{}, meta interface{}) bool {
107-
// if change from non-nil to nil, we need to force new
108-
if oldVal != nil && oldVal.(string) != "" {
109-
return newVal == nil || newVal.(string) == ""
110-
}
111-
return false
112-
}),
113-
),
114104
}
115105
}
116106

website/docs/r/key_vault_secret.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The following arguments are supported:
8787

8888
* `not_before_date` - (Optional) Key not usable before the provided UTC datetime (Y-m-d'T'H:M:S'Z').
8989

90-
* `expiration_date` - (Optional) Expiration UTC datetime (Y-m-d'T'H:M:S'Z'). Removing this forces a new resource to be created.
90+
* `expiration_date` - (Optional) Expiration UTC datetime (Y-m-d'T'H:M:S'Z').
9191

9292
## Attributes Reference
9393

0 commit comments

Comments
 (0)