summaryrefslogtreecommitdiff
path: root/pkg/trust/trust.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2022-08-24 19:56:37 +0200
committerMiloslav Trmač <mitr@redhat.com>2022-08-25 01:51:59 +0200
commitd4c5217280a420aa28e9f9d116989f419dc427a1 (patch)
tree37d0a0ff877cf3ea2af78da3b71fa8aa88c10141 /pkg/trust/trust.go
parent4df1e2524b9a8b3ff2d3768ac7fe54e98a966886 (diff)
downloadpodman-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.go6
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)
}