From 1ffcc4a8883b099e379a60c367e8a662c0e2c782 Mon Sep 17 00:00:00 2001 From: John Matthews Date: Tue, 29 Mar 2022 17:37:27 -0400 Subject: Add 'Os' to be queried via 'version' output Signed-off-by: John Matthews --- libpod/define/version.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpod') diff --git a/libpod/define/version.go b/libpod/define/version.go index 039b0ff27..2c17e6e92 100644 --- a/libpod/define/version.go +++ b/libpod/define/version.go @@ -27,6 +27,7 @@ type Version struct { BuiltTime string Built int64 OsArch string + Os string } // GetVersion returns a VersionOutput struct for API and podman @@ -49,5 +50,6 @@ func GetVersion() (Version, error) { BuiltTime: time.Unix(buildTime, 0).Format(time.ANSIC), Built: buildTime, OsArch: runtime.GOOS + "/" + runtime.GOARCH, + Os: runtime.GOOS, }, nil } -- cgit v1.2.3-54-g00ecf