Reviewed: https://review.openstack.org/339457 Committed: https://git.openstack.org/cgit/openstack/ironic-inspector/commit/?id=522113da4390347a9cd55e89a7eddf6e14527eff Submitter: Jenkins Branch: master
commit 522113da4390347a9cd55e89a7eddf6e14527eff Author: Alfredo Moralejo <email address hidden> Date: Fri Jul 8 11:11:13 2016 +0200
Add callback function to manage missing hooks
Before https://review.openstack.org/#/c/337043/, stevedore.NamedExtensionManager returned KeyError when calling with non-existing names and name_order=True.
After the mentioned change this is not longer true, so we used the just added on_missing_entrypoints_callback option to customize the behavior in this cases and make it raise a custom exception MissingHookError.
Change-Id: I1f1edc0b7a82a16bf9be4113db61ee1cd0080db4 Closes-Bug: #1600141
Reviewed: https:/ /review. openstack. org/339457 /git.openstack. org/cgit/ openstack/ ironic- inspector/ commit/ ?id=522113da439 0347a9cd55e89a7 eddf6e14527eff
Committed: https:/
Submitter: Jenkins
Branch: master
commit 522113da4390347 a9cd55e89a7eddf 6e14527eff
Author: Alfredo Moralejo <email address hidden>
Date: Fri Jul 8 11:11:13 2016 +0200
Add callback function to manage missing hooks
Before https:/ /review. openstack. org/#/c/ 337043/, NamedExtensionM anager returned KeyError
stevedore.
when calling with non-existing names and name_order=True.
After the mentioned change this is not longer true, entrypoints_ callback option
so we used the just added on_missing_
to customize the behavior in this cases and make it raise
a custom exception MissingHookError.
Change-Id: I1f1edc0b7a82a1 6bf9be4113db61e e1cd0080db4
Closes-Bug: #1600141