From 147287959f355cb69b8550dc46609b552d330958 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Tue, 19 Oct 2021 19:12:48 +0200 Subject: [PATCH] feature(keyringctl): derive username from short key id fingerprints Allow short key id fingerprints to be used with the username derive function by adding a glob in front of the fingerprint component. --- keyringctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyringctl b/keyringctl index 76d85a6..504c777 100755 --- a/keyringctl +++ b/keyringctl @@ -718,7 +718,7 @@ def derive_username_from_fingerprint(keyring_dir: Path, certificate_fingerprint: A string representing the username a public key certificate belongs to, None otherwise """ - matches = list(keyring_dir.glob(f"*/{certificate_fingerprint}")) + matches = list(keyring_dir.glob(f"*/*{certificate_fingerprint}")) if len(matches) > 1: raise Exception(