summaryrefslogtreecommitdiff
path: root/pkg/domain
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2020-06-16 15:39:05 -0400
committerAshley Cui <acui@redhat.com>2020-06-16 15:48:53 -0400
commite867fe5c3e448e6ec9793a653bd2377b75f91dd9 (patch)
tree35eb85f5b37a24e21405bb2d3b4ea4d9221b4ad4 /pkg/domain
parentd6965da26d194c7edfef65985d4a2c7b564a3fca (diff)
downloadpodman-e867fe5c3e448e6ec9793a653bd2377b75f91dd9.tar.gz
podman-e867fe5c3e448e6ec9793a653bd2377b75f91dd9.tar.bz2
podman-e867fe5c3e448e6ec9793a653bd2377b75f91dd9.zip
Show Anon, GID, UID in v2 volumes
Anon, GID, UID parameters previously hidden if empty in podman volume for API v2. Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'pkg/domain')
-rw-r--r--pkg/domain/entities/volumes.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/domain/entities/volumes.go b/pkg/domain/entities/volumes.go
index 7cf7d82a2..c99b39f2d 100644
--- a/pkg/domain/entities/volumes.go
+++ b/pkg/domain/entities/volumes.go
@@ -47,13 +47,13 @@ type VolumeConfigResponse struct {
// It is presently not used.
Options map[string]string `json:"Options"`
// UID is the UID that the volume was created with.
- UID int `json:"UID,omitempty"`
+ UID int `json:"UID"`
// GID is the GID that the volume was created with.
- GID int `json:"GID,omitempty"`
+ GID int `json:"GID"`
// Anonymous indicates that the volume was created as an anonymous
// volume for a specific container, and will be be removed when any
// container using it is removed.
- Anonymous bool `json:"Anonymous,omitempty"`
+ Anonymous bool `json:"Anonymous"`
}
type VolumeRmOptions struct {