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

This commit is contained in:
decentral1se 2022-01-19 12:38:41 +01:00
parent afeee1270e
commit b1b9612e01
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 3 additions and 1 deletions

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"]