summaryrefslogtreecommitdiff
path: root/libpod/volume_inspect.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-21 22:20:40 +0200
committerGitHub <noreply@github.com>2019-10-21 22:20:40 +0200
commitefc54c3987f95fd94b5e0aa41dd307be49d1b31b (patch)
tree1820209fcc96b950caac0fc7a9a45c0b75a10823 /libpod/volume_inspect.go
parentd2591a54335424263374a919d485712e5b8aa093 (diff)
parent03da8b641df1c03aea6f9faa3ddc2b0df64ec68b (diff)
downloadpodman-efc54c3987f95fd94b5e0aa41dd307be49d1b31b.tar.gz
podman-efc54c3987f95fd94b5e0aa41dd307be49d1b31b.tar.bz2
podman-efc54c3987f95fd94b5e0aa41dd307be49d1b31b.zip
Merge pull request #4284 from mheon/fix_vol_inspect
Show volume options in 'volume inspect'
Diffstat (limited to 'libpod/volume_inspect.go')
-rw-r--r--libpod/volume_inspect.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/volume_inspect.go b/libpod/volume_inspect.go
index 87ed9d340..c333b8961 100644
--- a/libpod/volume_inspect.go
+++ b/libpod/volume_inspect.go
@@ -62,6 +62,9 @@ func (v *Volume) Inspect() (*InspectVolumeData, error) {
}
data.Scope = v.Scope()
data.Options = make(map[string]string)
+ for k, v := range v.config.Options {
+ data.Options[k] = v
+ }
data.UID = v.config.UID
data.GID = v.config.GID
data.ContainerSpecific = v.config.IsCtrSpecific