diff options
author | baude <bbaude@redhat.com> | 2021-02-10 13:39:09 -0600 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-02-11 13:25:37 -0500 |
commit | bb82839492b5226c8c5b04906a05da311177f713 (patch) | |
tree | 18cf3d1036a867d339850d8dbe5cf3fc03f1bcc7 /libpod/define | |
parent | a30fd8f6107780f13f0274e5c5c8ed0ae9aaa363 (diff) | |
download | podman-bb82839492b5226c8c5b04906a05da311177f713.tar.gz podman-bb82839492b5226c8c5b04906a05da311177f713.tar.bz2 podman-bb82839492b5226c8c5b04906a05da311177f713.zip |
Display correct value for unlimited ulimit
When doing a container inspect on a container with unlimited ulimits,
the value should be -1. But because the OCI spec requires the ulimit
value to be uint64, we were displaying the inspect values as a uint64 as
well. Simple change to display as an int64.
Fixes: #9303
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/define')
-rw-r--r-- | libpod/define/container_inspect.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/define/container_inspect.go b/libpod/define/container_inspect.go index 9a93e2ffd..7d4b8a46f 100644 --- a/libpod/define/container_inspect.go +++ b/libpod/define/container_inspect.go @@ -120,9 +120,9 @@ type InspectUlimit struct { // Name is the name (type) of the ulimit. Name string `json:"Name"` // Soft is the soft limit that will be applied. - Soft uint64 `json:"Soft"` + Soft int64 `json:"Soft"` // Hard is the hard limit that will be applied. - Hard uint64 `json:"Hard"` + Hard int64 `json:"Hard"` } // InspectDevice is a single device that will be mounted into the container. |