mirror of
https://github.com/containers/podman.git
synced 2025-06-20 09:03:43 +08:00
cli: podman run/create --blkio-weight-device use StringArray()
This option accepts a file path so we should allow commas in it. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -994,7 +994,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions,
|
||||
_ = cmd.RegisterFlagCompletionFunc(blkioWeightFlagName, completion.AutocompleteNone)
|
||||
|
||||
blkioWeightDeviceFlagName := "blkio-weight-device"
|
||||
createFlags.StringSliceVar(
|
||||
createFlags.StringArrayVar(
|
||||
&cf.BlkIOWeightDevice,
|
||||
blkioWeightDeviceFlagName, []string{},
|
||||
"Block IO weight (relative device weight, format: `DEVICE_NAME:WEIGHT`)",
|
||||
|
Reference in New Issue
Block a user