summaryrefslogtreecommitdiff
path: root/cloudinit/stages.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-08-04 22:01:27 -0500
committerScott Moser <smoser@ubuntu.com>2015-08-04 22:01:27 -0500
commit5585b397cfb4ba397e9cfba3d86e3d10af20eb71 (patch)
tree945e0494d57ac1018fc18875b03f8f5c47c0ff4c /cloudinit/stages.py
parent02cc30c4ba60050c15c56927fa1bad50299ed8c3 (diff)
downloadvyos-cloud-init-5585b397cfb4ba397e9cfba3d86e3d10af20eb71.tar.gz
vyos-cloud-init-5585b397cfb4ba397e9cfba3d86e3d10af20eb71.zip
fix pep8
Diffstat (limited to 'cloudinit/stages.py')
-rw-r--r--cloudinit/stages.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py
index 7b489b9f..d300709d 100644
--- a/cloudinit/stages.py
+++ b/cloudinit/stages.py
@@ -243,7 +243,8 @@ class Init(object):
return self.datasource
with reporting.ReportEventStack(
- name="check-cache", description="attempting to read from cache",
+ name="check-cache",
+ description="attempting to read from cache",
parent=self.reporter) as myrep:
ds = self._restore_from_cache()
if ds:
@@ -708,17 +709,18 @@ class Modules(object):
# This name will affect the semaphore name created
run_name = "config-%s" % (name)
- desc="running %s with frequency %s" % (run_name, freq)
+ desc = "running %s with frequency %s" % (run_name, freq)
myrep = reporting.ReportEventStack(
name=run_name, description=desc, parent=self.reporter)
with myrep:
- ran, _r = cc.run(run_name, mod.handle, func_args, freq=freq)
+ ran, _r = cc.run(run_name, mod.handle, func_args,
+ freq=freq)
if ran:
myrep.message = "%s ran successfully" % run_name
else:
myrep.message = "%s previously ran" % run_name
-
+
except Exception as e:
util.logexc(LOG, "Running module %s (%s) failed", name, mod)
failures.append((name, e))