summaryrefslogtreecommitdiff
path: root/cloudinit/handlers
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2013-07-21 10:45:29 -0700
committerJoshua Harlow <harlowja@gmail.com>2013-07-21 10:45:29 -0700
commit971c2b2366c6e58921e1d2dd3ba18e597cbc20e8 (patch)
treea1169ea5937ea9543e4a7e9b26a5d27479ad5a97 /cloudinit/handlers
parentbbfc76fb74595881b25acc1bbbd426314c2390ed (diff)
downloadvyos-cloud-init-971c2b2366c6e58921e1d2dd3ba18e597cbc20e8.tar.gz
vyos-cloud-init-971c2b2366c6e58921e1d2dd3ba18e597cbc20e8.zip
Just use an initialized array.
Diffstat (limited to 'cloudinit/handlers')
-rw-r--r--cloudinit/handlers/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/cloudinit/handlers/__init__.py b/cloudinit/handlers/__init__.py
index f9b90323..1d450061 100644
--- a/cloudinit/handlers/__init__.py
+++ b/cloudinit/handlers/__init__.py
@@ -153,10 +153,7 @@ def walker_handle_handler(pdata, _ctype, _filename, payload):
call_begin(mod, pdata['data'], frequency)
# Only register and increment after the above have worked, so we don't
# register if it fails starting.
- handlers.register(mod)
- # Ensure that it gets finalized by marking said module as having been
- # initialized correctly.
- handlers.markings[mod].append('initialized')
+ handlers.register(mod, initialized=True)
pdata['handlercount'] = curcount + 1
except:
util.logexc(LOG, "Failed at registering python file: %s (part "