refactor: handle STACK_NAME override in one place

This commit is contained in:
2021-10-12 01:14:14 +02:00
parent 777d49ac1d
commit 4a01e411be
4 changed files with 5 additions and 14 deletions

View File

@ -88,10 +88,6 @@ can take some time.
tableRow = []string{app.Server, app.Type, app.Domain}
if status {
stackName := app.StackName()
if app.Env["STACK_NAME"] != "" {
stackName = app.Env["STACK_NAME"]
}
status := "unknown"
version := "unknown"
if statusMeta, ok := statuses[stackName]; ok {