1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-05 18:45:01 +01:00

bugfix in discover_sigstore

Closes: #642
Approved by: rhatdan
This commit is contained in:
Aaron Weitekamp
2016-09-20 16:50:18 -04:00
committed by Atomic Bot
parent d551996d49
commit 1cd5ba96b7

View File

@@ -279,7 +279,7 @@ class Trust(Atomic):
if self.prompt_trust(sigstore_labels):
pubkey_path = self.install_pubkey(sigstore_labels['pubkey-id'], sigstore_labels['pubkey-url'])
explicit_sigstoretype = "web"
if sigstore_labels['sigstore-type']:
if "sigstore-type" in sigstore_labels:
explicit_sigstoretype = sigstore_labels['sigstore-type']
self.add(registry=scope, trust_type="signedBy", sigstoretype=explicit_sigstoretype, keytype="GPGKeys", pubkeys=[pubkey_path], sigstore=sigstore_labels['sigstore-url'])