summaryrefslogtreecommitdiff
path: root/pkg/bindings/system
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-05-19 11:00:59 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-05-21 16:31:34 -0400
commit7b188f7b5b28ea04bcda1747f1869a50ac4b6f4a (patch)
tree7a5678be650894dd40275dfccc3fd5b948a32112 /pkg/bindings/system
parent17171aecf449c0f0823d7843242d735caaad7739 (diff)
downloadpodman-7b188f7b5b28ea04bcda1747f1869a50ac4b6f4a.tar.gz
podman-7b188f7b5b28ea04bcda1747f1869a50ac4b6f4a.tar.bz2
podman-7b188f7b5b28ea04bcda1747f1869a50ac4b6f4a.zip
podman version --format ... was not working
This patch fixes the podman --version --format command. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/bindings/system')
-rw-r--r--pkg/bindings/system/system.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/bindings/system/system.go b/pkg/bindings/system/system.go
index e567e7a86..ed960b8e0 100644
--- a/pkg/bindings/system/system.go
+++ b/pkg/bindings/system/system.go
@@ -112,12 +112,12 @@ func Version(ctx context.Context) (*entities.SystemVersionReport, error) {
f, _ := strconv.ParseFloat(component.APIVersion, 64)
b, _ := time.Parse(time.RFC3339, component.BuildTime)
report.Server = &define.Version{
- RemoteAPIVersion: int64(f),
- Version: component.Version.Version,
- GoVersion: component.GoVersion,
- GitCommit: component.GitCommit,
- Built: b.Unix(),
- OsArch: fmt.Sprintf("%s/%s", component.Os, component.Arch),
+ APIVersion: int64(f),
+ Version: component.Version.Version,
+ GoVersion: component.GoVersion,
+ GitCommit: component.GitCommit,
+ Built: b.Unix(),
+ OsArch: fmt.Sprintf("%s/%s", component.Os, component.Arch),
}
return &report, err
}