From 1cd5ba96b749ea26b60f935dff62ef7818562bfd Mon Sep 17 00:00:00 2001 From: Aaron Weitekamp Date: Tue, 20 Sep 2016 16:50:18 -0400 Subject: [PATCH] bugfix in discover_sigstore Closes: #642 Approved by: rhatdan --- Atomic/trust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Atomic/trust.py b/Atomic/trust.py index 5f5682f..759589a 100644 --- a/Atomic/trust.py +++ b/Atomic/trust.py @@ -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'])