mirror of
https://github.com/containers/podman.git
synced 2025-12-07 22:32:46 +08:00
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>
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user