From e763cc62b78a800e6b1448de6fa6b2b3a253c3b8 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 7 Dec 2023 16:51:45 +0100 Subject: [PATCH] cli: podman run/create --device use StringArray() This options accepts a file path so we should allow commas in it. Signed-off-by: Paul Holzinger --- cmd/podman/common/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go index 65c78317c0..1e2bc4eeb6 100644 --- a/cmd/podman/common/create.go +++ b/cmd/podman/common/create.go @@ -814,7 +814,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions, _ = cmd.RegisterFlagCompletionFunc(volumeFlagName, AutocompleteVolumeFlag) deviceFlagName := "device" - createFlags.StringSliceVar( + createFlags.StringArrayVar( &cf.Devices, deviceFlagName, devices(), "Add a host device to the container",