Explorar o código

fix issue where latest helm release is not populated

Alexander Belanger %!s(int64=4) %!d(string=hai) anos
pai
achega
26ea2e85be
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/helm/agent.go

+ 1 - 1
internal/helm/agent.go

@@ -67,7 +67,7 @@ func (a *Agent) ListReleases(
 			if versionExists && currVersionExists {
 				currVersion, currErr := strconv.Atoi(currVersionStr)
 				version, err := strconv.Atoi(versionStr)
-				if currErr != nil && err != nil && currVersion < version {
+				if currErr == nil && err == nil && currVersion < version {
 					latestMap[id] = secret
 				}
 			}