diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-11-23 09:50:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 09:50:26 -0500 |
commit | ee612806655d0d0a0a3d2a782a000ea5c6b08f33 (patch) | |
tree | 6a5ef0988a7642d83c0e7d095f89f552cccc8551 /cmd/podman/images/import.go | |
parent | 9e07cb17a92dd24df8053193e1e047f211a72a54 (diff) | |
parent | 21629b0501c62a991eef536765b7320bc2d45763 (diff) | |
download | podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.tar.gz podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.tar.bz2 podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.zip |
Merge pull request #12361 from rhatdan/remote
podman-remote does not support signature-policy
Diffstat (limited to 'cmd/podman/images/import.go')
-rw-r--r-- | cmd/podman/images/import.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/podman/images/import.go b/cmd/podman/images/import.go index d4bc0f610..3b6788f4a 100644 --- a/cmd/podman/images/import.go +++ b/cmd/podman/images/import.go @@ -77,8 +77,10 @@ func importFlags(cmd *cobra.Command) { _ = cmd.RegisterFlagCompletionFunc(messageFlagName, completion.AutocompleteNone) flags.BoolVarP(&importOpts.Quiet, "quiet", "q", false, "Suppress output") - flags.StringVar(&importOpts.SignaturePolicy, "signature-policy", "", "Path to a signature-policy file") - _ = flags.MarkHidden("signature-policy") + if !registry.IsRemote() { + flags.StringVar(&importOpts.SignaturePolicy, "signature-policy", "", "Path to a signature-policy file") + _ = flags.MarkHidden("signature-policy") + } } func importCon(cmd *cobra.Command, args []string) error { |