Skip to content

Commit e454232

Browse files
authored
fix(block): forceNew only if new size_in_gb is shreking (#3157)
1 parent fb5161c commit e454232

File tree

4 files changed

+1394
-3
lines changed

4 files changed

+1394
-3
lines changed

internal/services/block/helpers_block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func customDiffCannotShrink(key string) schema.CustomizeDiffFunc {
5252
oldValue := oldValueI.(int)
5353
newValue := newValueI.(int)
5454

55-
return oldValue < newValue
55+
return oldValue > newValue
5656
})
5757
}
5858

0 commit comments

Comments
 (0)