From db0a65cf6ecb4b89354526f6561ce64426d21447 Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Tue, 2 Apr 2024 17:15:20 +0300 Subject: [PATCH] Return only image (skipping sbom, img, etc) Fixes: https://github.com/kairos-io/kairos/issues/2329 Signed-off-by: Dimitris Karakasilis --- internal/agent/upgrade.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/agent/upgrade.go b/internal/agent/upgrade.go index 774692e5..3b82de43 100644 --- a/internal/agent/upgrade.go +++ b/internal/agent/upgrade.go @@ -112,7 +112,7 @@ func allReleases() (versioneer.TagList, error) { return tagList, err } - return tagList.OtherAnyVersion().RSorted(), nil + return tagList.OtherAnyVersion().Images().RSorted(), nil } func newerReleases() (versioneer.TagList, error) { @@ -130,7 +130,7 @@ func newerReleases() (versioneer.TagList, error) { if err != nil { return tagList, err } - return tagList.NewerAnyVersion().RSorted(), nil + return tagList.NewerAnyVersion().Images().RSorted(), nil } // generateUpgradeConfForCLIArgs creates a kairos configuration for `--source` and `--recovery`