Skip to content

Commit 031cb90

Browse files
authored
add writeOnly in updateFuncSet check (#1472)
1 parent 151f59e commit 031cb90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helper/schema/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ func (r *Resource) InternalValidate(topSchemaMap schemaMap, writable bool) error
12161216
if !r.updateFuncSet() {
12171217
nonForceNewAttrs := make([]string, 0)
12181218
for k, v := range schema {
1219-
if !v.ForceNew && !v.Computed {
1219+
if !v.ForceNew && !v.Computed && !v.WriteOnly {
12201220
nonForceNewAttrs = append(nonForceNewAttrs, k)
12211221
}
12221222
}

0 commit comments

Comments
 (0)