mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 04:38:04 +08:00
Merge branch
This commit is contained in:
commit
24ef46ec19
@ -70,13 +70,14 @@ func (t *Manager) Start(errchan chan error) error {
|
|||||||
for _, v := range results {
|
for _, v := range results {
|
||||||
serviceIDList = append(serviceIDList, v.ServiceID)
|
serviceIDList = append(serviceIDList, v.ServiceID)
|
||||||
}
|
}
|
||||||
|
logrus.Info("More than 5 versions of the application",serviceIDList)
|
||||||
versions, err := db.GetManager().VersionInfoDao().GetVersionInfo(datetime, serviceIDList)
|
versions, err := db.GetManager().VersionInfoDao().GetVersionInfo(datetime, serviceIDList)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Error(err)
|
logrus.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, v := range versions {
|
for _, v := range versions {
|
||||||
|
logrus.Info(v.CreatedAt,v.ID)
|
||||||
if v.DeliveredType == "image" {
|
if v.DeliveredType == "image" {
|
||||||
imagePath := v.DeliveredPath
|
imagePath := v.DeliveredPath
|
||||||
err := sources.ImageRemove(t.dclient, imagePath) //remove image
|
err := sources.ImageRemove(t.dclient, imagePath) //remove image
|
||||||
|
Loading…
Reference in New Issue
Block a user