diff options
author | Miloslav Trmač <mitr@redhat.com> | 2022-08-24 19:56:37 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2022-08-25 01:51:59 +0200 |
commit | d4c5217280a420aa28e9f9d116989f419dc427a1 (patch) | |
tree | 37d0a0ff877cf3ea2af78da3b71fa8aa88c10141 /pkg/trust/trust.go | |
parent | 4df1e2524b9a8b3ff2d3768ac7fe54e98a966886 (diff) | |
download | podman-d4c5217280a420aa28e9f9d116989f419dc427a1.tar.gz podman-d4c5217280a420aa28e9f9d116989f419dc427a1.tar.bz2 podman-d4c5217280a420aa28e9f9d116989f419dc427a1.zip |
Recognize the new lookaside names for simple signing sigstore
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'pkg/trust/trust.go')
-rw-r--r-- | pkg/trust/trust.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/trust/trust.go b/pkg/trust/trust.go index 9dd6878f9..aaddcf93e 100644 --- a/pkg/trust/trust.go +++ b/pkg/trust/trust.go @@ -91,7 +91,11 @@ func getPolicyShowOutput(policyContentStruct policyContent, systemRegistriesDirP registryNamespace := haveMatchRegistry(repo, registryConfigs) if registryNamespace != nil { - tempTrustShowOutput.SignatureStore = registryNamespace.SigStore + if registryNamespace.Lookaside != "" { + tempTrustShowOutput.SignatureStore = registryNamespace.Lookaside + } else { // incl. registryNamespace.SigStore == "" + tempTrustShowOutput.SignatureStore = registryNamespace.SigStore + } } output = append(output, &tempTrustShowOutput) } |