From 366ca02b224bc17b4df8f015f5188436608e32b0 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Wed, 5 Aug 2015 03:59:54 +0000 Subject: [PATCH] Fetch a keyid ID from a fingerprint `apt-key del` works with IDs `signing_key_fingerprint` contains a fingerprint --- salt/modules/aptpkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py index 81eb7b4395..3cb9e88361 100644 --- a/salt/modules/aptpkg.py +++ b/salt/modules/aptpkg.py @@ -1597,7 +1597,7 @@ def del_repo_key(name=None, **kwargs): owner_name, ppa_name = name[4:].split('/') ppa_info = _get_ppa_info_from_launchpad( owner_name, ppa_name) - keyid = ppa_info['signing_key_fingerprint'] + keyid = ppa_info['signing_key_fingerprint'][-8:] else: raise SaltInvocationError( 'keyid_ppa requires that a PPA be passed'