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.
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.
- 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).
- Blocked by Bug #4005: allow Rabl.render(object, 'something/show') to work added
- 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.
Also available in: Atom
PDF