mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 03:37:46 +08:00
fix: incorrect version of MediaTypeManifest makes it backup failed
This commit is contained in:
parent
447ab85000
commit
c131aed4b1
@ -333,8 +333,14 @@ func (b *BackupAPPNew) checkVersionExist(version *dbmodel.VersionInfo) (bool, er
|
||||
}
|
||||
_, err = reg.Manifest(imageInfo.Name, imageInfo.Tag)
|
||||
if err != nil {
|
||||
logrus.Errorf("get image %s manifest info failure [%v], it could be not exist", version.DeliveredPath, err)
|
||||
return false, err
|
||||
logrus.Errorf("get image [%s] manifest info failure [%v], it could be not exist", version.DeliveredPath, err)
|
||||
// Compatible with MediaTypeManifest
|
||||
_, err := reg.ManifestV2(imageInfo.Name, imageInfo.Tag)
|
||||
if err != nil {
|
||||
logrus.Errorf("get image [%s] manifestV2 info failure [%v], it could be not exist", version.DeliveredPath, err)
|
||||
return false, err
|
||||
}
|
||||
return true, nil
|
||||
}
|
||||
return true, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user