From 8941cc77b8578f8953f78a71269f4c3a9fe441f0 Mon Sep 17 00:00:00 2001 From: David Martin Date: Fri, 7 Jan 2022 16:49:49 -0600 Subject: [PATCH] fix(artifacts): use normalized artifact versions (#2004) Use normalized version when comparing latest available artifact and the current artifact from the DB. --- .../com/netflix/spinnaker/keel/artifacts/ArtifactListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keel-artifact/src/main/kotlin/com/netflix/spinnaker/keel/artifacts/ArtifactListener.kt b/keel-artifact/src/main/kotlin/com/netflix/spinnaker/keel/artifacts/ArtifactListener.kt index 6ed87ac3fe..09e66be90f 100644 --- a/keel-artifact/src/main/kotlin/com/netflix/spinnaker/keel/artifacts/ArtifactListener.kt +++ b/keel-artifact/src/main/kotlin/com/netflix/spinnaker/keel/artifacts/ArtifactListener.kt @@ -97,7 +97,7 @@ class ArtifactListener( log.debug("Latest available versions of $artifact: ${latestAvailableVersions.map { it.version }}") val newVersions = latestAvailableVersions - .filterNot { currentVersions.contains(it.version) } + .filterNot { currentVersions.contains(it.normalized().version) } .filter { artifactSupplier.shouldProcessArtifact(it) } if (newVersions.isNotEmpty()) { log.debug("$artifact has a missing version(s) ${newVersions.map { it.version }}, persisting.")