summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_lxd.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-03 15:21:48 -0500
committerScott Moser <smoser@ubuntu.com>2016-03-03 15:21:48 -0500
commitcb64cf1e14a474794654f5d1586b117912bed4f9 (patch)
tree6257cc656dc780b81c7fbb7ff0b5e32a3a297d2b /cloudinit/config/cc_lxd.py
parent96f1742b36241cee152aa2cb5b4a5e1a267a4770 (diff)
downloadvyos-cloud-init-cb64cf1e14a474794654f5d1586b117912bed4f9.tar.gz
vyos-cloud-init-cb64cf1e14a474794654f5d1586b117912bed4f9.zip
fix some of pylints complaints
Diffstat (limited to 'cloudinit/config/cc_lxd.py')
-rw-r--r--cloudinit/config/cc_lxd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cloudinit/config/cc_lxd.py b/cloudinit/config/cc_lxd.py
index 80a4d219..63b8fb63 100644
--- a/cloudinit/config/cc_lxd.py
+++ b/cloudinit/config/cc_lxd.py
@@ -49,7 +49,7 @@ def handle(name, cfg, cloud, log, args):
init_cfg = lxd_cfg.get('init')
if not isinstance(init_cfg, dict):
log.warn("lxd/init config must be a dictionary. found a '%s'",
- type(init_cfg))
+ type(init_cfg))
init_cfg = {}
if not init_cfg:
@@ -62,14 +62,14 @@ def handle(name, cfg, cloud, log, args):
packages.append('lxd')
# if using zfs, get the utils
- if (init_cfg.get("storage_backend") == "zfs" and not util.which('zfs')):
+ if init_cfg.get("storage_backend") == "zfs" and not util.which('zfs'):
packages.append('zfs')
if len(packages):
try:
cloud.distro.install_packages(packages)
- except util.ProcessExecutionError as e:
- log.warn("failed to install packages %s: %s", packages, e)
+ except util.ProcessExecutionError as exc:
+ log.warn("failed to install packages %s: %s", packages, exc)
return
# Set up lxd if init config is given