summaryrefslogtreecommitdiff
path: root/cloudinit/transforms/cc_final_message.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/transforms/cc_final_message.py')
-rw-r--r--cloudinit/transforms/cc_final_message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/transforms/cc_final_message.py b/cloudinit/transforms/cc_final_message.py
index dc4ae34c..c257b6d0 100644
--- a/cloudinit/transforms/cc_final_message.py
+++ b/cloudinit/transforms/cc_final_message.py
@@ -32,7 +32,7 @@ final_message_def = ("Cloud-init v. {{version}} finished at {{timestamp}}."
" Up {{uptime}} seconds.")
-def handle(name, cfg, cloud, log, args):
+def handle(_name, cfg, cloud, log, args):
msg_in = None
if len(args) != 0:
@@ -60,7 +60,7 @@ def handle(name, cfg, cloud, log, args):
# Use stdout, stderr or the logger??
content = templater.render_string(msg_in, subs)
sys.stderr.write("%s\n" % (content))
- except Exception as e:
+ except Exception:
util.logexc(log, "Failed to render final message template")
boot_fin_fn = cloud.paths.boot_finished