summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorBrian Elliott <brian.elliott@rackspace.com>2012-11-16 15:45:59 +0000
committerBrian Elliott <brian.elliott@rackspace.com>2012-11-30 20:47:53 +0000
commite937a53065377ecb7c30372ce880bd3d358f4572 (patch)
treebfd55c165f34c98d14d17bde3a71ecf9845231ff /nova/openstack
parent18bc8abd031f294c69941bd0401738b664f14bf0 (diff)
downloadnova-e937a53065377ecb7c30372ce880bd3d358f4572.tar.gz
nova-e937a53065377ecb7c30372ce880bd3d358f4572.tar.xz
nova-e937a53065377ecb7c30372ce880bd3d358f4572.zip
Add generic customization hooks via decorator.
Hooks add the ability to insert custom code around operations that declare a named hook: e.g. @hooks.add_hooks('create_instance') def create_instance(....): .... The above hook allows Hook objects to be run 'pre' and 'post' the execution of create_instance() Hook objects are discovered via the setuptools entry point group 'nova.hooks'. Change-Id: I3961df12ef415085de7459438967edacc34500c2
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions