diff options
author | Ryan Harper <ryan.harper@canonical.com> | 2016-03-03 16:20:10 -0600 |
---|---|---|
committer | Ryan Harper <ryan.harper@canonical.com> | 2016-03-03 16:20:10 -0600 |
commit | 8cb7c3f7b5339e686bfbf95996b51afafeaf9c9e (patch) | |
tree | 6892cca7fb6c81ed150d037a192b9a9d0e30068b /cloudinit/config/cc_apt_configure.py | |
parent | 9a3a490fadc5b61e0fa14cde2d4f79164115ae25 (diff) | |
download | vyos-cloud-init-8cb7c3f7b5339e686bfbf95996b51afafeaf9c9e.tar.gz vyos-cloud-init-8cb7c3f7b5339e686bfbf95996b51afafeaf9c9e.zip |
Update pep8 runner and fix pep8 issues
Diffstat (limited to 'cloudinit/config/cc_apt_configure.py')
-rw-r--r-- | cloudinit/config/cc_apt_configure.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py index 9e9e9e26..702977cb 100644 --- a/cloudinit/config/cc_apt_configure.py +++ b/cloudinit/config/cc_apt_configure.py @@ -91,7 +91,8 @@ def handle(name, cfg, cloud, log, _args): if matchcfg: matcher = re.compile(matchcfg).search else: - matcher = lambda f: False + def matcher(x): + return False errors = add_sources(cfg['apt_sources'], params, aa_repo_match=matcher) @@ -173,7 +174,8 @@ def add_sources(srclist, template_params=None, aa_repo_match=None): template_params = {} if aa_repo_match is None: - aa_repo_match = lambda f: False + def aa_repo_match(x): + return False errorlist = [] for ent in srclist: |