From c11e55ddfe697ef0144b3ac2e44a73f65ba8be32 Mon Sep 17 00:00:00 2001 From: "alvarez.mauriciotm@gmail.com" Date: Thu, 16 Jan 2025 17:10:58 -0800 Subject: [PATCH] prevent properties to be forceNew if parent is immutable --- mmv1/api/type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmv1/api/type.go b/mmv1/api/type.go index dd8cb4070a29..d721d60095b1 100644 --- a/mmv1/api/type.go +++ b/mmv1/api/type.go @@ -1082,7 +1082,7 @@ func (t *Type) IsForceNew() bool { } parent := t.Parent() - return (!t.Output || t.IsA("KeyValueEffectiveLabels")) && + return !t.WriteOnly && (!t.Output || t.IsA("KeyValueEffectiveLabels")) && (t.Immutable || (t.ResourceMetadata.Immutable && t.UpdateUrl == "" && (parent == nil ||