summaryrefslogtreecommitdiff
path: root/cloudinit/handlers/__init__.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-07-24 11:04:34 -0400
committerScott Moser <smoser@ubuntu.com>2013-07-24 11:04:34 -0400
commit82397d79f1c0618f25eab6e28e65b1e59a98603a (patch)
tree282753410e972115da387fdef471f6563b5b3379 /cloudinit/handlers/__init__.py
parenteae3b6ad499b88b725a52cf07245e4721af380cf (diff)
parent0891f6611d1c264220a6f71306802db1e70651fc (diff)
downloadvyos-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__.py7
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 "