From 901cf71a6091e2a556a52f89c62ca446dbc5cd06 Mon Sep 17 00:00:00 2001 From: Anders F Björklund Date: Mon, 13 Sep 2021 22:00:12 +0200 Subject: Show variant and codename of the distribution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Along with the name (id) and the version(_id) But only show the information if is available Examples: Fedora CoreOS, Ubuntu Focal [NO TESTS NEEDED] Signed-off-by: Anders F Björklund --- libpod/define/info.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpod/define/info.go') diff --git a/libpod/define/info.go b/libpod/define/info.go index 73df80087..f4aa0031c 100644 --- a/libpod/define/info.go +++ b/libpod/define/info.go @@ -78,7 +78,9 @@ type IDMappings struct { // for libpod type DistributionInfo struct { Distribution string `json:"distribution"` + Variant string `json:"variant,omitempty"` Version string `json:"version"` + Codename string `json:"codename,omitempty"` } // ConmonInfo describes the conmon executable being used -- cgit v1.2.3-54-g00ecf