summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_apt_configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config/cc_apt_configure.py')
-rw-r--r--cloudinit/config/cc_apt_configure.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py
index be6324a2..ba080930 100644
--- a/cloudinit/config/cc_apt_configure.py
+++ b/cloudinit/config/cc_apt_configure.py
@@ -24,6 +24,7 @@ import re
from cloudinit import templater
from cloudinit import util
+from cloudinit import gpg
distros = ['ubuntu', 'debian']
@@ -167,7 +168,7 @@ def add_apt_key(ent):
keyserver = "keyserver.ubuntu.com"
if 'keyserver' in ent:
keyserver = ent['keyserver']
- ent['key'] = util.getkeybyid(ent['keyid'], keyserver)
+ ent['key'] = gpg.gpg_getkeybyid(ent['keyid'], keyserver)
if 'key' in ent:
add_apt_key_raw(ent['key'])