From 47b65086eef71d0c303c8c5814e1f5c2854f2051 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Fri, 8 Dec 2023 17:54:05 +0100 Subject: [PATCH] cli: podman image trust set --pubkeysfile use StringArray() This option accepts a file path so we should allow commas in it. There ar eno tests for this option, I have no idea what this option does nor how to use it so I cannot write one. Signed-off-by: Paul Holzinger --- cmd/podman/images/trust_set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/podman/images/trust_set.go b/cmd/podman/images/trust_set.go index e7339f0b18..2ed91d9c46 100644 --- a/cmd/podman/images/trust_set.go +++ b/cmd/podman/images/trust_set.go @@ -41,7 +41,7 @@ func init() { _ = setFlags.MarkHidden("policypath") pubkeysfileFlagName := "pubkeysfile" - setFlags.StringSliceVarP(&setOptions.PubKeysFile, pubkeysfileFlagName, "f", []string{}, `Path of installed public key(s) to trust for TARGET. + setFlags.StringArrayVarP(&setOptions.PubKeysFile, pubkeysfileFlagName, "f", []string{}, `Path of installed public key(s) to trust for TARGET. Absolute path to keys is added to policy.json. May used multiple times to define multiple public keys. File(s) must exist before using this command`)