diff options
author | Juerg Haefliger <juergh@gmail.com> | 2013-06-19 08:44:00 +0200 |
---|---|---|
committer | Juerg Haefliger <juergh@gmail.com> | 2013-06-19 08:44:00 +0200 |
commit | 944623f4ad3e4c7319758c64053d06a3b05555a2 (patch) | |
tree | c8766adf057692157a0c454ac24a02a9fc5022f1 /cloudinit/handlers/__init__.py | |
parent | 812f82e7b3bad3f8127face552c76ef974b54661 (diff) | |
download | vyos-cloud-init-944623f4ad3e4c7319758c64053d06a3b05555a2.tar.gz vyos-cloud-init-944623f4ad3e4c7319758c64053d06a3b05555a2.zip |
fix and cleanup usage of util.logexc
Diffstat (limited to 'cloudinit/handlers/__init__.py')
-rw-r--r-- | cloudinit/handlers/__init__.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cloudinit/handlers/__init__.py b/cloudinit/handlers/__init__.py index 924463ce..497d68c5 100644 --- a/cloudinit/handlers/__init__.py +++ b/cloudinit/handlers/__init__.py @@ -1,7 +1,7 @@ # vi: ts=4 expandtab # # Copyright (C) 2012 Canonical Ltd. -# Copyright (C) 2012 Hewlett-Packard Development Company, L.P. +# Copyright (C) 2012, 2013 Hewlett-Packard Development Company, L.P. # Copyright (C) 2012 Yahoo! Inc. # # Author: Scott Moser <scott.moser@canonical.com> @@ -117,10 +117,9 @@ def run_part(mod, data, filename, payload, frequency, headers): else: raise ValueError("Unknown module version %s" % (mod_ver)) except: - util.logexc(LOG, ("Failed calling handler %s (%s, %s, %s)" - " with frequency %s"), - mod, content_type, filename, - mod_ver, frequency) + util.logexc(LOG, "Failed calling handler %s (%s, %s, %s) with " + "frequency %s", mod, content_type, filename, mod_ver, + frequency) def call_begin(mod, data, frequency): @@ -158,8 +157,8 @@ def walker_handle_handler(pdata, _ctype, _filename, payload): handlers.register(mod) pdata['handlercount'] = curcount + 1 except: - util.logexc(LOG, ("Failed at registering python file: %s" - " (part handler %s)"), modfname, curcount) + util.logexc(LOG, "Failed at registering python file: %s (part " + "handler %s)", modfname, curcount) def _extract_first_or_bytes(blob, size): |