summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_yum_add_repo.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-10-16 15:17:20 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-10-16 15:17:20 -0700
commit19c640ebfd3832ec1582c6c134ea68efac95588c (patch)
tree41361d3df4058ee59d582008e20706b5df35022a /cloudinit/config/cc_yum_add_repo.py
parentea21cecc94b613b063d17588d4cd6612bc56753b (diff)
downloadvyos-cloud-init-19c640ebfd3832ec1582c6c134ea68efac95588c.tar.gz
vyos-cloud-init-19c640ebfd3832ec1582c6c134ea68efac95588c.zip
Remove some pylint buggies.
Diffstat (limited to 'cloudinit/config/cc_yum_add_repo.py')
-rw-r--r--cloudinit/config/cc_yum_add_repo.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/cloudinit/config/cc_yum_add_repo.py b/cloudinit/config/cc_yum_add_repo.py
index 41dc72a0..10c423b5 100644
--- a/cloudinit/config/cc_yum_add_repo.py
+++ b/cloudinit/config/cc_yum_add_repo.py
@@ -20,7 +20,6 @@
import os
-from cloudinit import templater
from cloudinit import util
import configobj
@@ -53,7 +52,7 @@ def _format_repository_config(repo_id, repo_config):
return "\n".join(lines)
-def handle(name, cfg, cloud, log, _args):
+def handle(name, cfg, _cloud, log, _args):
repos = cfg.get('yum_repos')
if not repos:
log.debug(("Skipping module named %s,"
@@ -84,10 +83,12 @@ def handle(name, cfg, cloud, log, _args):
n_repo_config[k] = v
repo_config = n_repo_config
if not 'baseurl' in repo_config:
- log.warn("Repository %s does not contain a baseurl address", repo_id)
+ log.warn("Repository %s does not contain a baseurl address",
+ repo_id)
else:
repo_configs[canon_repo_id] = repo_config
repo_locations[canon_repo_id] = repo_fn_pth
for (c_repo_id, path) in repo_locations.items():
- repo_blob = _format_repository_config(c_repo_id, repo_configs.get(c_repo_id))
+ repo_blob = _format_repository_config(c_repo_id,
+ repo_configs.get(c_repo_id))
util.write_file(path, repo_blob)