diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-30 07:51:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 07:51:04 -0400 |
commit | ff8834f0232f128b781ec23d66a5676da0670847 (patch) | |
tree | f1eb220cec7cabace6b348a6c1eedede85056c95 /libpod | |
parent | d0d805ba1bd19025080ea47bb07e653505fe85e2 (diff) | |
parent | 1ffcc4a8883b099e379a60c367e8a662c0e2c782 (diff) | |
download | podman-ff8834f0232f128b781ec23d66a5676da0670847.tar.gz podman-ff8834f0232f128b781ec23d66a5676da0670847.tar.bz2 podman-ff8834f0232f128b781ec23d66a5676da0670847.zip |
Merge pull request #13705 from jwmatthews/issue13690
Add 'Os' to be queried via 'version' output
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/define/version.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 } |