diff --git a/internal/cli/action/release_info.go b/internal/cli/action/release_info.go index b0c43390..6b023b07 100644 --- a/internal/cli/action/release_info.go +++ b/internal/cli/action/release_info.go @@ -263,12 +263,12 @@ func printInfraData(cm *core.ReleaseManifest, out io.Writer) error { table.Header([]string{"Infrastructure Components", versionHdr, sourceHdr}) osVersion := "Unknown" - if cm.Components.OperatingSystem.Image.Base != "" { - parts := strings.Split(cm.Components.OperatingSystem.Image.Base, ":") + if cm.Components.OperatingSystem.Image.ISO != "" { + parts := strings.Split(cm.Components.OperatingSystem.Image.ISO, ":") if len(parts) > 1 { osVersion = "SLES " + strings.Split(parts[1], "-")[0] } - data = append(data, []string{"Operating System", osVersion, cm.Components.OperatingSystem.Image.Base}) + data = append(data, []string{"Operating System", osVersion, cm.Components.OperatingSystem.Image.ISO}) } if cm.Components.Kubernetes != nil { diff --git a/internal/cli/action/release_info_test.go b/internal/cli/action/release_info_test.go index d93abc7e..799b6016 100644 --- a/internal/cli/action/release_info_test.go +++ b/internal/cli/action/release_info_test.go @@ -101,7 +101,7 @@ components: Expect(err).ToNot(HaveOccurred()) Expect(buffer).To(ContainSubstring("CORE PLATFORM")) Expect(buffer).To(ContainSubstring("suse-core-test")) - Expect(buffer).To(ContainSubstring("registry.suse.com/elemental/base-os-kernel-default:16.0-2.4")) + Expect(buffer).To(ContainSubstring("registry.suse.com/elemental/base-os-kernel-default-iso:16.0-2.7")) Expect(buffer).To(ContainSubstring("INFRASTRUCTURE COMPONENTS")) Expect(buffer).To(ContainSubstring("SLES 16.0"))