diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-09-16 11:05:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 11:05:33 +0200 |
commit | 0d14d7b7152ac7a0856fcbb2bbc0f7238ab182d6 (patch) | |
tree | bbb75dd846015cb33e2a96b1ea9a6c4ec0d62859 /libpod/image/pull.go | |
parent | b9c47fa40bc503e155a528174974293c6b053ec2 (diff) | |
parent | 2fcd1d7b4dca2619277607da7c8d22e9ec7620a2 (diff) | |
download | podman-0d14d7b7152ac7a0856fcbb2bbc0f7238ab182d6.tar.gz podman-0d14d7b7152ac7a0856fcbb2bbc0f7238ab182d6.tar.bz2 podman-0d14d7b7152ac7a0856fcbb2bbc0f7238ab182d6.zip |
Merge pull request #7624 from QiWang19/policy-option
Supports import&run--signature-policy
Diffstat (limited to 'libpod/image/pull.go')
-rw-r--r-- | libpod/image/pull.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go index 94d6af4c2..65acdf427 100644 --- a/libpod/image/pull.go +++ b/libpod/image/pull.go @@ -255,6 +255,9 @@ func (ir *Runtime) pullImageFromHeuristicSource(ctx context.Context, inputName s sc.ArchitectureChoice = dockerOptions.ArchitectureChoice sc.VariantChoice = dockerOptions.VariantChoice } + if signaturePolicyPath == "" { + sc.SignaturePolicyPath = ir.SignaturePolicyPath + } sc.BlobInfoCacheDir = filepath.Join(ir.store.GraphRoot(), "cache") srcRef, err := alltransports.ParseImageName(inputName) if err != nil { |