Merge pull request #834 from GLYASAI/build-error

Build error
This commit is contained in:
黄润豪 2020-09-16 09:58:13 +08:00 committed by GitHub
commit 823e70a6b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ func upgradeImages(ctx *cli.Context) error {
if util.StringArrayContains(ctx.StringSlice("s"), service.Name) &&
service.Start != "" && !service.OnlyHealthCheck {
par := parser.CreateDockerRunOrImageParse("", "", service.Start, nil, event.GetTestLogger())
par.ParseDockerun(strings.Split(service.Start, " "))
par.ParseDockerun(service.Start)
image := par.GetImage()
if image.Name == "" {
continue

View File

@ -529,7 +529,7 @@ func (m *ManagerService) ListServiceImages() []string {
}
par := parser.CreateDockerRunOrImageParse("", "", svc.Start, nil, event.GetTestLogger())
par.ParseDockerun(strings.Split(svc.Start, " "))
par.ParseDockerun(svc.Start)
logrus.Debugf("detect image: %s", par.GetImage().String())
if par.GetImage().String() == "" {
continue