Skip to content

Commit f59074b

Browse files
committed
fix: Remove premature return after closing sparse diff file so Convert executes.
Ensure diffDisk is converted to the requested format instead of staying sparse. Signed-off-by: ashwat287 <ashwatpas@gmail.com>
1 parent 5e906fe commit f59074b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/driverutil/disk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func EnsureDisk(ctx context.Context, instDir, diskSize string, diskImageFormat i
5050
diffDiskF.Close()
5151
return fmt.Errorf("failed to create sparse diff disk %q: %w", diffDisk, err)
5252
}
53-
return diffDiskF.Close()
53+
diffDiskF.Close()
5454
}
5555
// Check whether to use ASIF format
5656

0 commit comments

Comments
 (0)