Actions
Bug #2796
closedForeman hooks not called if event is triggered using API
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
I have created a plugin that binds to 'create' and 'destroy' events:
after_filter :external_scripts_host_destroy, :only => [:destroy] after_filter :external_scripts_host_create, :only => [:create]
This works fine if I create/destroy hosts using web UI. However when I create a host using API call the plugin is not triggered.
Updated by Lukas Zapletal over 11 years ago
- Category set to API
- Target version set to 1.3.0
Updated by Ohad Levy over 11 years ago
- Status changed from New to Rejected
- Target version deleted (
1.3.0)
this is not a bug, if you use controller hooks, you need to add the hooks to the api contollers as well, or add the hook to the model instead.
Actions