diff options
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-05-12 20:29:33 +0200 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-05-12 20:29:33 +0200 |
commit | 53834934e4c520b2fb8b5acffca641213ddd688a (patch) | |
tree | f88c066f9123dfc06ddd71a2d7865fc607c62276 /cloudinit/config/cc_apt_configure.py | |
parent | e55ccfa5670e16aa7431a193d0838aa7d04db4d5 (diff) | |
download | vyos-cloud-init-53834934e4c520b2fb8b5acffca641213ddd688a.tar.gz vyos-cloud-init-53834934e4c520b2fb8b5acffca641213ddd688a.zip |
fix EXPORT_GPG_KEYID for long key fingerprints
Diffstat (limited to 'cloudinit/config/cc_apt_configure.py')
-rw-r--r-- | cloudinit/config/cc_apt_configure.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py index 492c3c00..28f20939 100644 --- a/cloudinit/config/cc_apt_configure.py +++ b/cloudinit/config/cc_apt_configure.py @@ -43,7 +43,7 @@ EXPORT_GPG_KEYID = """ [ -n "$k" ] || exit 1; armour=$(gpg --list-keys --armour "${k}") if [ -z "${armour}" ]; then - gpg --keyserver ${ks} --recv $k >/dev/null && + gpg --keyserver ${ks} --recv "${k}" >/dev/null && armour=$(gpg --export --armour "${k}") && gpg --batch --yes --delete-keys "${k}" fi |