Actions
Bug #19565
closedMissing host parameters in foreman_hooks json
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
Started playing with foreman_hooks and noticed that the json data passed to my hook script is missing host parameters when I create a new host. I started digging through commits and found that if i revert this commit:
in the app/views/api/v2/hosts/show.json.rabl file it works again.
So, this code (which nowadays is moved to main.json.rabl):
node do |host| { :parameters => partial("api/v2/parameters/base", :object => host.host_parameters.authorized) } end
does not work for me but this do:
child :host_parameters => :parameters do extends "api/v2/parameters/base" end
I'm running this as administrator in my Foreman installation, am I missing something or is this a bug?
Updated by Dominic Cleal almost 7 years ago
- Status changed from New to Rejected
The foreman_hooks issue tracker is at https://github.com/theforeman/foreman_hooks/issues. I've moved this issue to https://github.com/theforeman/foreman_hooks/issues/43.
Actions