From 27133cc16d219e5594d7f17f25a48e3fb56db3a6 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 11 Jun 2012 17:20:04 -0700 Subject: Pylint fixups. --- cloudinit/user_data/boot_hook.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cloudinit/user_data/boot_hook.py b/cloudinit/user_data/boot_hook.py index 4ce398ac..87e7a3ec 100644 --- a/cloudinit/user_data/boot_hook.py +++ b/cloudinit/user_data/boot_hook.py @@ -60,6 +60,7 @@ class BootHookPartHandler(ud.PartHandler): env['INSTANCE_ID'] = str(self.instance_id) util.subp([filepath], env=env) except util.ProcessExecutionError as e: - LOG.error("Boothooks script %s returned %s", filepath, e.exit_code) + LOG.error("Boothooks script %s execution error %s", filepath, e) except Exception as e: - LOG.error("Boothooks unknown exception %s when running %s", e, filepath) + LOG.exception(("Boothooks unknown " + "error %s when running %s"), e, filepath) -- cgit v1.2.3