summaryrefslogtreecommitdiff
path: root/cmd/podman/version.go
diff options
context:
space:
mode:
authorAnders F Björklund <anders.f.bjorklund@gmail.com>2018-10-30 23:55:48 +0100
committerAnders F Björklund <anders.f.bjorklund@gmail.com>2018-10-31 00:27:08 +0100
commitb2fef1a8badb875339d6329c095842baee4b3a17 (patch)
tree42e9c0a95a03d90b1aea21fa45bc6efc7be12e21 /cmd/podman/version.go
parentaef9d56ae20e34447a69e19613629b8281a78502 (diff)
downloadpodman-b2fef1a8badb875339d6329c095842baee4b3a17.tar.gz
podman-b2fef1a8badb875339d6329c095842baee4b3a17.tar.bz2
podman-b2fef1a8badb875339d6329c095842baee4b3a17.zip
Fix setting of version information
It was setting the wrong variable (CamelCase) in the wrong module ("main", not "libpod")... Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'cmd/podman/version.go')
-rw-r--r--cmd/podman/version.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/version.go b/cmd/podman/version.go
index f896229c4..d80f24a14 100644
--- a/cmd/podman/version.go
+++ b/cmd/podman/version.go
@@ -21,7 +21,7 @@ func versionCmd(c *cli.Context) error {
fmt.Println("Git Commit: ", output.GitCommit)
}
// Prints out the build time in readable format
- if libpod.BuildInfo != "" {
+ if output.Built != 0 {
fmt.Println("Built: ", time.Unix(output.Built, 0).Format(time.ANSIC))
}