summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/config/cc_apt_configure.py2
-rw-r--r--tests/unittests/test_handler/test_handler_apt_source.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py
index e7b8a9b3..e5a962ac 100644
--- a/cloudinit/config/cc_apt_configure.py
+++ b/cloudinit/config/cc_apt_configure.py
@@ -171,6 +171,7 @@ def generate_sources_list(cfg, codename, mirrors, cloud, log):
templater.render_to_file(template_fn, '/etc/apt/sources.list', params)
+
def add_key_raw(key):
"""
actual adding of a key as defined in key argument
@@ -181,6 +182,7 @@ def add_key_raw(key):
except:
raise Exception('failed add key')
+
def add_key(ent):
"""
add key to the system as defiend in ent (if any)
diff --git a/tests/unittests/test_handler/test_handler_apt_source.py b/tests/unittests/test_handler/test_handler_apt_source.py
index 439bd038..e130392c 100644
--- a/tests/unittests/test_handler/test_handler_apt_source.py
+++ b/tests/unittests/test_handler/test_handler_apt_source.py
@@ -30,6 +30,7 @@ S0ORP6HXET3+jC8BMG4tBWCTK/XEZw==
=ACB2
-----END PGP PUBLIC KEY BLOCK-----"""
+
def load_tfile_or_url(*args, **kwargs):
""" load_tfile_or_url
load file and return content after decoding