summaryrefslogtreecommitdiff
path: root/libpod/volume_inspect.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-06 15:55:15 -0400
committerGitHub <noreply@github.com>2020-07-06 15:55:15 -0400
commite3e2b1e65930bfc40c5b60802c4d6ea175169732 (patch)
treede9fbf65281b2d9e69eaa90be2bdee96d3047d5c /libpod/volume_inspect.go
parentb8ad7f241aba622b23b2cfab6fb5284cd26125e3 (diff)
parent2fb9bb20df49f665dbc7420a80dc2da57530278f (diff)
downloadpodman-e3e2b1e65930bfc40c5b60802c4d6ea175169732.tar.gz
podman-e3e2b1e65930bfc40c5b60802c4d6ea175169732.tar.bz2
podman-e3e2b1e65930bfc40c5b60802c4d6ea175169732.zip
Merge pull request #6871 from mheon/202_backports
Backports for v2.0.2
Diffstat (limited to 'libpod/volume_inspect.go')
-rw-r--r--libpod/volume_inspect.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/libpod/volume_inspect.go b/libpod/volume_inspect.go
index 5258792eb..85848f84f 100644
--- a/libpod/volume_inspect.go
+++ b/libpod/volume_inspect.go
@@ -65,8 +65,15 @@ func (v *Volume) Inspect() (*InspectVolumeData, error) {
for k, v := range v.config.Options {
data.Options[k] = v
}
- data.UID = v.config.UID
- data.GID = v.config.GID
+ var err error
+ data.UID, err = v.UID()
+ if err != nil {
+ return nil, err
+ }
+ data.GID, err = v.GID()
+ if err != nil {
+ return nil, err
+ }
data.Anonymous = v.config.IsAnon
return data, nil