diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-07-24 11:04:34 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-07-24 11:04:34 -0400 |
commit | 82397d79f1c0618f25eab6e28e65b1e59a98603a (patch) | |
tree | 282753410e972115da387fdef471f6563b5b3379 /cloudinit/handlers/__init__.py | |
parent | eae3b6ad499b88b725a52cf07245e4721af380cf (diff) | |
parent | 0891f6611d1c264220a6f71306802db1e70651fc (diff) | |
download | vyos-cloud-init-82397d79f1c0618f25eab6e28e65b1e59a98603a.tar.gz vyos-cloud-init-82397d79f1c0618f25eab6e28e65b1e59a98603a.zip |
merge from trunk
Diffstat (limited to 'cloudinit/handlers/__init__.py')
-rw-r--r-- | cloudinit/handlers/__init__.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cloudinit/handlers/__init__.py b/cloudinit/handlers/__init__.py index 297e7451..4c7c9295 100644 --- a/cloudinit/handlers/__init__.py +++ b/cloudinit/handlers/__init__.py @@ -152,10 +152,9 @@ def walker_handle_handler(pdata, _ctype, _filename, payload): try: mod = fixup_handler(importer.import_module(modname)) call_begin(mod, pdata['data'], frequency) - # Only register and increment - # after the above have worked (so we don't if it - # fails) - handlers.register(mod) + # Only register and increment after the above have worked, so we don't + # register if it fails starting. + handlers.register(mod, initialized=True) pdata['handlercount'] = curcount + 1 except: util.logexc(LOG, "Failed at registering python file: %s (part " |