Skip to content

Commit

Permalink
prevent properties to be forceNew if parent is immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
BBBmau committed Jan 17, 2025
1 parent e0ebb92 commit c11e55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmv1/api/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit c11e55d

Please sign in to comment.