summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-10-17 09:55:37 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-10-18 13:42:31 -0400
commit6456f6da1742863e8119c0f4b2927f3b1300a942 (patch)
treec4c6c79075978850895e97441eb6b36d5167f2d7 /libpod
parente7d5ac0e7533668c366fd4b68e1afd7642b01db9 (diff)
downloadpodman-6456f6da1742863e8119c0f4b2927f3b1300a942.tar.gz
podman-6456f6da1742863e8119c0f4b2927f3b1300a942.tar.bz2
podman-6456f6da1742863e8119c0f4b2927f3b1300a942.zip
Show volume options in 'volume inspect'
We initialized the map to show them, but didn't actually copy them in, so they weren't being displayed. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod')
-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