summaryrefslogtreecommitdiff
path: root/cloudinit/handlers/__init__.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 20:22:16 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 20:22:16 -0700
commit71a661de85dc910c82c6769430232b555a86198a (patch)
tree5d1511d83b56054bdcb4767977956508061e9c17 /cloudinit/handlers/__init__.py
parent005ff658c6f301303269e14dfef4c27ada5c3982 (diff)
downloadvyos-cloud-init-71a661de85dc910c82c6769430232b555a86198a.tar.gz
vyos-cloud-init-71a661de85dc910c82c6769430232b555a86198a.zip
Update error messaging for when importing/registring a part-handler fails
Diffstat (limited to 'cloudinit/handlers/__init__.py')
-rw-r--r--cloudinit/handlers/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/handlers/__init__.py b/cloudinit/handlers/__init__.py
index 0ef704f7..3944c661 100644
--- a/cloudinit/handlers/__init__.py
+++ b/cloudinit/handlers/__init__.py
@@ -141,7 +141,8 @@ def walker_handle_handler(pdata, _ctype, _filename, payload):
handlers.register(mod)
call_begin(mod, pdata['data'], frequency)
except:
- util.logexc(LOG, "Failed at registered python file: %s", modfname)
+ util.logexc(LOG, ("Failed at registering python file: %s"
+ " (part handler %s)"), modfname, curcount)
def _extract_first_or_bytes(blob, size):