File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1102,8 +1102,10 @@ func (self *SImage) migrateSubImage(ctx context.Context) error {
11021102 }
11031103 if self .GetImageType () != api .ImageTypeISO && imgInst .IsSparse () && utils .IsInStringArray (self .DiskFormat , options .Options .TargetImageFormats ) {
11041104 // need to convert again
1105+ log .Debugf ("migrateImage: image is not iso but sparse, need to convert the image" )
11051106 return self .newSubformat (ctx , qemuimgfmt .String2ImageFormat (self .DiskFormat ), false )
11061107 } else {
1108+ log .Debugf ("migrateImage: no need to convert the image" )
11071109 localPath := self .GetLocalLocation ()
11081110 if ! strings .HasSuffix (localPath , fmt .Sprintf (".%s" , self .DiskFormat )) {
11091111 newLocalpath := fmt .Sprintf ("%s.%s" , localPath , self .DiskFormat )
@@ -1165,9 +1167,6 @@ func (self *SImage) doConvertAllSubformats() error {
11651167 // cleanup
11661168 continue
11671169 }
1168- if self .DiskFormat == subimgs [i ].Format {
1169- continue
1170- }
11711170 err := subimgs [i ].doConvert (self )
11721171 if err != nil {
11731172 return errors .Wrap (err , "" )
You can’t perform that action at this time.
0 commit comments