Project

General

Profile

Actions

Bug #2796

closed

Foreman hooks not called if event is triggered using API

Added by Rytis Sileika almost 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Lukas Zapletal almost 11 years ago

  • Category set to API
  • Target version set to 1.3.0
Actions #2

Updated by Ohad Levy almost 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

Also available in: Atom PDF