diff --git a/vsphere/internal/helper/ovfdeploy/ovf_helper.go b/vsphere/internal/helper/ovfdeploy/ovf_helper.go index e73e77446..e1bc207a9 100644 --- a/vsphere/internal/helper/ovfdeploy/ovf_helper.go +++ b/vsphere/internal/helper/ovfdeploy/ovf_helper.go @@ -78,10 +78,7 @@ func DeployOvfAndGetResult(ovfCreateImportSpecResult *types.OvfCreateImportSpecR if totalBytes == 0 { break } - progress = getTotalBytesRead(&currBytesRead) * 100 / totalBytes - if progress == 100 { - close(statusChannel) - } + progress = (getTotalBytesRead(&currBytesRead) / totalBytes) * 100 nfcLease.Progress(context.Background(), int32(progress)) time.Sleep(10 * time.Second) }