summaryrefslogtreecommitdiff
path: root/cmd/podman/create.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-03-07 17:33:48 -0600
committerbaude <bbaude@redhat.com>2019-03-08 08:17:31 -0600
commita7606ca5d92eeba25956362d5c8a7b687e2f52cd (patch)
tree0eee79cd4252d8eec22c28335285f6562d2ca32e /cmd/podman/create.go
parent1b2f8679b864b882fdccaad6fdd6a5c86c83291b (diff)
downloadpodman-a7606ca5d92eeba25956362d5c8a7b687e2f52cd.tar.gz
podman-a7606ca5d92eeba25956362d5c8a7b687e2f52cd.tar.bz2
podman-a7606ca5d92eeba25956362d5c8a7b687e2f52cd.zip
label parsing in non-quoted field
switch from a stringslice to a stringarray for labels to handle quoted input. fixes issue #2574 Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/create.go')
-rw-r--r--cmd/podman/create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go
index 968b5586b..fa8b9f57b 100644
--- a/cmd/podman/create.go
+++ b/cmd/podman/create.go
@@ -592,7 +592,7 @@ func parseCreateOpts(ctx context.Context, c *cliconfig.PodmanCommand, runtime *l
}
// LABEL VARIABLES
- labels, err := getAllLabels(c.StringSlice("label-file"), c.StringSlice("label"))
+ labels, err := getAllLabels(c.StringSlice("label-file"), c.StringArray("label"))
if err != nil {
return nil, errors.Wrapf(err, "unable to process labels")
}