diff --git a/cli/app/list.go b/cli/app/list.go index 5e8201f2..55a82331 100644 --- a/cli/app/list.go +++ b/cli/app/list.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "sort" + "strconv" "strings" "coopcloud.tech/abra/cli/internal" @@ -249,11 +250,15 @@ can take some time. for _, appStat := range serverStat.Apps { tableRow := []string{appStat.Recipe, appStat.Domain} if status { - chaosStatus := "unknown" - if appStat.ChaosVersion != "unknown" { - chaosStatus = appStat.ChaosVersion - } else { - chaosStatus = appStat.Chaos + chaosStatus := appStat.Chaos + if chaosStatus != "unknown" { + chaosEnabled, err := strconv.ParseBool(chaosStatus) + if err != nil { + logrus.Fatal(err) + } + if chaosEnabled && appStat.ChaosVersion != "unknown" { + chaosStatus = appStat.ChaosVersion + } } tableRow = append(tableRow, []string{appStat.Status, chaosStatus, appStat.Version, appStat.Upgrade, appStat.AutoUpdate}...) }