summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-12 21:21:36 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-12 21:21:36 +0200
commit454de24c7d457b980c91849b128efe4faee62032 (patch)
tree535b30529498129b56a5429b938908d45099ebd1
parent0a407b63f61f48d310d205f833c1a2792273ec80 (diff)
downloadvyos-cloud-init-454de24c7d457b980c91849b128efe4faee62032.tar.gz
vyos-cloud-init-454de24c7d457b980c91849b128efe4faee62032.zip
make pep8 happy with a few spaces
-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