]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Provide kwargs for callback abort
authorPaul Michali <pc@michali.net>
Tue, 12 Jan 2016 21:44:47 +0000 (21:44 +0000)
committerPaul Michali <pc@michali.net>
Tue, 12 Jan 2016 21:48:05 +0000 (21:48 +0000)
commit8771ab481635e0d98bf5f0d34c1dbae1c872bed9
tree1a58ff87468618a35adcf9ca2c396d8fd1dd4a55
parentbf67c6f3cfe13de7d01b3b027cc4fee14addc8f5
Provide kwargs for callback abort

The callback mechanism allows notifiers to provide keyword args in
the notification. If this is a create callback, and there is an
exception, then the notifier will call an abort callback.

However, currently, the keyword arguments are not provided to the
abort callback. This information could be useful for the callbacks,
and would make the mechanism consistent. This commit provides that
information.

Change-Id: I2ee0363b52f9de5fcd72905957e8f7e7796f630e
neutron/callbacks/manager.py
neutron/tests/unit/callbacks/test_manager.py