Project

General

Profile

Actions

Feature #3843

closed

Host-level parameters not passed to hooks via json

Added by Martin Matuška about 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The json passed to foreman hooks does now not contain the parameters set on host level (e.g. via override). This seems to have changed as it was available in the past.
Some hooks may rely on these parameters.


Related issues 1 (0 open1 closed)

Blocked by Foreman - Bug #4005: allow Rabl.render(object, 'something/show') to workClosedDominic Cleal01/13/2014Actions
Actions #1

Updated by Dominic Cleal about 11 years ago

  • Tracker changed from Bug to Feature
  • Project changed from Foreman to Plugins
  • Category deleted (Host creation)
  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal

I was experimenting with using Rabl.render to render the JSON using the API rabl views which looks like it'll work well, though our patches to rabl assume that it's being invoked from a Rails controller (by accessing params) so I'll need to fix this in core first (at least under 1.4, haven't checked 1.3).

Actions #2

Updated by Dominic Cleal almost 11 years ago

  • Blocked by Bug #4005: allow Rabl.render(object, 'something/show') to work added
Actions #3

Updated by Dominic Cleal almost 11 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Fixed in foreman_hooks 0.3.5, I think only on Foreman 1.4.0 GA and above.

Actions

Also available in: Atom PDF