summaryrefslogtreecommitdiff
path: root/cmd/podman/shared/intermediate.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-06-25 18:06:00 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-08-05 14:50:29 -0400
commitda36c6b29b905fa1384823f53d9d91adfbd0db34 (patch)
treeb5c27551107be27dc68f71c1cd95199ad3c71659 /cmd/podman/shared/intermediate.go
parent234d8f9d284e160e009cb642cfe444d27e059a7a (diff)
downloadpodman-da36c6b29b905fa1384823f53d9d91adfbd0db34.tar.gz
podman-da36c6b29b905fa1384823f53d9d91adfbd0db34.tar.bz2
podman-da36c6b29b905fa1384823f53d9d91adfbd0db34.zip
Fix parsing of the --tmpfs option
With StringSlice, we're seeing individual options added and parsed separately, so `tmpfs:nosuid,nodev` turns into three tmpfs mounts passed into pkg/sec (tmpfs:, nosuid, nodev). Swap to StringArray to tell cobra this can't be split on commas. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'cmd/podman/shared/intermediate.go')
-rw-r--r--cmd/podman/shared/intermediate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/shared/intermediate.go b/cmd/podman/shared/intermediate.go
index a38e4d47a..eecd1604c 100644
--- a/cmd/podman/shared/intermediate.go
+++ b/cmd/podman/shared/intermediate.go
@@ -448,7 +448,7 @@ func NewIntermediateLayer(c *cliconfig.PodmanCommand, remote bool) GenericCLIRes
m["subuidname"] = newCRString(c, "subuidname")
m["sysctl"] = newCRStringSlice(c, "sysctl")
m["systemd"] = newCRBool(c, "systemd")
- m["tmpfs"] = newCRStringSlice(c, "tmpfs")
+ m["tmpfs"] = newCRStringArray(c, "tmpfs")
m["tty"] = newCRBool(c, "tty")
m["uidmap"] = newCRStringSlice(c, "uidmap")
m["ulimit"] = newCRStringSlice(c, "ulimit")