~ubuntu-branches/ubuntu/saucy/cloud-init/saucy

« back to all changes in this revision

Viewing changes to cloudinit/handlers/__init__.py

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2013-07-26 10:47:59 UTC
  • Revision ID: package-import@ubuntu.com-20130726104759-t2sh9rildgj73khi
debian/control: fix bad dependency on python-jsonpatch 
by build-depending on python-json-patch, so dh_python2
can find the right package (LP: #1205358).

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    '#part-handler': 'text/part-handler',
63
63
    '#cloud-boothook': 'text/cloud-boothook',
64
64
    '#cloud-config-archive': 'text/cloud-config-archive',
 
65
    '#cloud-config-jsonp': 'text/cloud-config-jsonp',
65
66
}
66
67
 
67
68
# Sorted longest first
151
152
    try:
152
153
        mod = fixup_handler(importer.import_module(modname))
153
154
        call_begin(mod, pdata['data'], frequency)
154
 
        # Only register and increment
155
 
        # after the above have worked (so we don't if it
156
 
        # fails)
157
 
        handlers.register(mod)
 
155
        # Only register and increment after the above have worked, so we don't
 
156
        # register if it fails starting.
 
157
        handlers.register(mod, initialized=True)
158
158
        pdata['handlercount'] = curcount + 1
159
159
    except:
160
160
        util.logexc(LOG, "Failed at registering python file: %s (part "