Skip to content

Commit

Permalink
try fix check depend
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleLollipop committed Sep 29, 2024
1 parent 06ec191 commit 772f990
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions pkg/apiserver/service/v1/handler_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ func (h *Handler) devUpload(req *restful.Request, resp *restful.Response) {
}

if install {
err = checkDep(info, token)
if err != nil {
respDepErr(resp, err.Error())
return
}
// err = checkDep(info, token)
// if err != nil {
// respDepErr(resp, err.Error())
// return
// }

resBody, err := installByType(info, token)
if err != nil {
Expand Down
14 changes: 7 additions & 7 deletions pkg/apiserver/service/v1/handler_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ func checkDep(app *models.ApplicationInfo, token string) error {
return err
}

// if len(depsResp.Data) <= 0 {
// return nil
// }
if len(depsResp.Data) <= 0 {
return nil
}

notInstalled, err := json.Marshal(depsResp.Data)
if err != nil {
Expand Down Expand Up @@ -69,10 +69,10 @@ func installPre(appName, token string) (*models.ApplicationInfo, error) {
return info, errors.New("get chart name failed")
}

err = checkDep(info, token)
if err != nil {
return info, err
}
// err = checkDep(info, token)
// if err != nil {
// return info, err
// }

err = appmgr.DownloadAppTgz(info.ChartName)
if err != nil {
Expand Down

0 comments on commit 772f990

Please sign in to comment.