summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_apt_configure.py
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-12 20:29:33 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-12 20:29:33 +0200
commit53834934e4c520b2fb8b5acffca641213ddd688a (patch)
treef88c066f9123dfc06ddd71a2d7865fc607c62276 /cloudinit/config/cc_apt_configure.py
parente55ccfa5670e16aa7431a193d0838aa7d04db4d5 (diff)
downloadvyos-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.py2
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