aboutsummaryrefslogtreecommitdiff
path: root/libpod/info.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-16 03:09:15 -0700
committerGitHub <noreply@github.com>2020-04-16 03:09:15 -0700
commit084cfb81da4f3f3e06ad35bfb3ea52027f62273b (patch)
tree8cc29cace1599bec0360c16f708e11d7db45a7b6 /libpod/info.go
parentd6b3bc18f85236aa753d8a8a7993d160dbdad3f8 (diff)
parent62803f8d3bacaea9956e6ec3176b223b85d260a5 (diff)
downloadpodman-084cfb81da4f3f3e06ad35bfb3ea52027f62273b.tar.gz
podman-084cfb81da4f3f3e06ad35bfb3ea52027f62273b.tar.bz2
podman-084cfb81da4f3f3e06ad35bfb3ea52027f62273b.zip
Merge pull request #5834 from rhatdan/version
Add version to podman info command
Diffstat (limited to 'libpod/info.go')
-rw-r--r--libpod/info.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/info.go b/libpod/info.go
index 3cc767be6..d7ed5bb16 100644
--- a/libpod/info.go
+++ b/libpod/info.go
@@ -26,6 +26,11 @@ import (
// Info returns the store and host information
func (r *Runtime) info() (*define.Info, error) {
info := define.Info{}
+ versionInfo, err := define.GetVersion()
+ if err != nil {
+ return nil, errors.Wrapf(err, "error getting version info")
+ }
+ info.Version = versionInfo
// get host information
hostInfo, err := r.hostInfo()
if err != nil {