fix: dont try to parse empty values on status lookup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
cellarspoon 2022-01-19 12:38:41 +01:00
parent afeee1270e
commit b1b9612e01
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -144,7 +144,9 @@ can take some time.
version := "unknown"
if statusMeta, ok := statuses[app.StackName()]; ok {
if currentVersion, exists := statusMeta["version"]; exists {
version = currentVersion
if currentVersion != "" {
version = currentVersion
}
}
if statusMeta["status"] != "" {
status = statusMeta["status"]