diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-05-19 11:00:59 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-05-21 16:31:34 -0400 |
commit | 7b188f7b5b28ea04bcda1747f1869a50ac4b6f4a (patch) | |
tree | 7a5678be650894dd40275dfccc3fd5b948a32112 /pkg/bindings/system/system.go | |
parent | 17171aecf449c0f0823d7843242d735caaad7739 (diff) | |
download | podman-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/system.go')
-rw-r--r-- | pkg/bindings/system/system.go | 12 |
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 } |