mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +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)
|
_ = cmd.RegisterFlagCompletionFunc(blkioWeightFlagName, completion.AutocompleteNone)
|
||||||
|
|
||||||
blkioWeightDeviceFlagName := "blkio-weight-device"
|
blkioWeightDeviceFlagName := "blkio-weight-device"
|
||||||
createFlags.StringSliceVar(
|
createFlags.StringArrayVar(
|
||||||
&cf.BlkIOWeightDevice,
|
&cf.BlkIOWeightDevice,
|
||||||
blkioWeightDeviceFlagName, []string{},
|
blkioWeightDeviceFlagName, []string{},
|
||||||
"Block IO weight (relative device weight, format: `DEVICE_NAME:WEIGHT`)",
|
"Block IO weight (relative device weight, format: `DEVICE_NAME:WEIGHT`)",
|
||||||
|
Reference in New Issue
Block a user