fix: handle StackName / Name correctly

This commit is contained in:
2022-01-01 17:22:19 +01:00
parent 1b7836009f
commit a556ca625b
7 changed files with 29 additions and 27 deletions

View File

@ -133,10 +133,9 @@ can take some time.
totalAppsCount++
if status {
stackName := app.StackName()
status := "unknown"
version := "unknown"
if statusMeta, ok := statuses[stackName]; ok {
if statusMeta, ok := statuses[app.StackName()]; ok {
if currentVersion, exists := statusMeta["version"]; exists {
version = currentVersion
}
@ -191,7 +190,7 @@ can take some time.
appStats.server = app.Server
appStats.recipe = app.Type
appStats.appName = app.StackName()
appStats.appName = app.Name
appStats.domain = app.Domain
stats.apps = append(stats.apps, appStats)

View File

@ -175,7 +175,7 @@ recipes.
}
}
if err := stack.RunDeploy(cl, deployOpts, compose, app.Type, internal.DontWaitConverge); err != nil {
if err := stack.RunDeploy(cl, deployOpts, compose, app.StackName(), internal.DontWaitConverge); err != nil {
logrus.Fatal(err)
}

View File

@ -35,7 +35,7 @@ volumes as eligiblef or pruning once undeployed.
}
if !isDeployed {
logrus.Fatalf("%s is not deployed?", stackName)
logrus.Fatalf("%s is not deployed?", app.Name)
}
if err := internal.DeployOverview(app, deployedVersion, "continue with undeploy?"); err != nil {

View File

@ -188,7 +188,7 @@ recipes.
logrus.Fatal(err)
}
if err := stack.RunDeploy(cl, deployOpts, compose, app.Type, internal.DontWaitConverge); err != nil {
if err := stack.RunDeploy(cl, deployOpts, compose, app.StackName(), internal.DontWaitConverge); err != nil {
logrus.Fatal(err)
}