Skip to content

Commit

Permalink
Merge pull request #123 from openinfradev/tks-issues-796
Browse files Browse the repository at this point in the history
bugfix: assign transformed extraEnv to existing var
  • Loading branch information
ktkfree authored Aug 2, 2023
2 parents 14e357e + 3345db1 commit 0841ae5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/usecase/app-serve-app.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (u *AppServeAppUsecase) CreateAppServeApp(app *domain.AppServeApp) (string,
}

mJson, _ := json.Marshal(newExtEnv)
extEnv := string(mJson)
extEnv = string(mJson)
log.Debug("After transform, extraEnv: ", extEnv)
}

Expand Down Expand Up @@ -401,7 +401,6 @@ func (u *AppServeAppUsecase) UpdateAppServeApp(app *domain.AppServeApp, appTask

mJson, _ := json.Marshal(newExtEnv)
extEnv = string(mJson)

log.Debug("After transform, extraEnv: ", extEnv)
}

Expand Down

0 comments on commit 0841ae5

Please sign in to comment.