Merge branch

This commit is contained in:
barnettZQG 2018-06-11 11:26:53 +08:00
commit 24ef46ec19

View File

@ -70,13 +70,14 @@ func (t *Manager) Start(errchan chan error) error {
for _, v := range results {
serviceIDList = append(serviceIDList, v.ServiceID)
}
logrus.Info("More than 5 versions of the application",serviceIDList)
versions, err := db.GetManager().VersionInfoDao().GetVersionInfo(datetime, serviceIDList)
if err != nil {
logrus.Error(err)
}
for _, v := range versions {
logrus.Info(v.CreatedAt,v.ID)
if v.DeliveredType == "image" {
imagePath := v.DeliveredPath
err := sources.ImageRemove(t.dclient, imagePath) //remove image