Foreman hooks not called if event is triggered using API
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.