Project

General

Profile

Actions

Bug #2796

closed

Foreman hooks not called if event is triggered using API

Added by Rytis Sileika over 11 years ago. Updated over 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

Also available in: Atom PDF