diff options
author | Mike Milner <mike.milner@canonical.com> | 2012-02-21 15:43:53 -0400 |
---|---|---|
committer | Mike Milner <mike.milner@canonical.com> | 2012-02-21 15:43:53 -0400 |
commit | f54e9394e9d9dd0496d8084f9ca9ff5abee5f41c (patch) | |
tree | 60c76949ad93edb4680cfa0b58cb17190e164f43 /cloudinit/__init__.py | |
parent | e8a3e39c1a6356460418d45f5b24f29b3fe6f20b (diff) | |
download | vyos-cloud-init-f54e9394e9d9dd0496d8084f9ca9ff5abee5f41c.tar.gz vyos-cloud-init-f54e9394e9d9dd0496d8084f9ca9ff5abee5f41c.zip |
Cleanups.
Diffstat (limited to 'cloudinit/__init__.py')
-rw-r--r-- | cloudinit/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/__init__.py b/cloudinit/__init__.py index 82390eeb..f3541ee5 100644 --- a/cloudinit/__init__.py +++ b/cloudinit/__init__.py @@ -589,11 +589,10 @@ def partwalker_handle_handler(pdata, _ctype, _filename, payload): modfname = modname + ".py" util.write_file("%s/%s" % (pdata['handlerdir'], modfname), payload, 0600) - pdata['handlercount'] = curcount + 1 - try: mod = __import__(modname) handler_register(mod, pdata['handlers'], pdata['data'], frequency) + pdata['handlercount'] = curcount + 1 except: util.logexc(log) traceback.print_exc(file=sys.stderr) |