From 298cfbf3a59eef8435fb8be2c7449d01738ad6bf Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 6 Jun 2024 21:12:12 -0700 Subject: [PATCH] fix: govc vm.disk.change should only modify CapacityInBytes PR #3424 switched from the deprecated CapacityInKB field to CapacityInBytes. That PR focus was to fix an issue with the simulator, but broke against real vCenter. Just leaving CapacityInKB as-is makes vCenter happy again. Fixes #3464 --- govc/vm/disk/change.go | 1 - 1 file changed, 1 deletion(-) diff --git a/govc/vm/disk/change.go b/govc/vm/disk/change.go index d57b1bd46..fc268d92b 100644 --- a/govc/vm/disk/change.go +++ b/govc/vm/disk/change.go @@ -154,7 +154,6 @@ func (cmd *change) Run(ctx context.Context, f *flag.FlagSet) error { if int64(cmd.bytes) != 0 { editdisk.CapacityInBytes = int64(cmd.bytes) - editdisk.CapacityInKB = int64(0) // zero deprecated field } if editdisk.StorageIOAllocation == nil {