When creating a webhook for the build_entered event, no data is deployed and hooks will retrieve a nil value for any processed payload. reference; https://projects.theforeman.org/issues/35777 Expectations; build_entered retrieves proper object data Actual results; No payload is returned and so hooks cannot be built against this event
Hello Paul, have you seen the documentation [1] for such events? build_entered and build_exited are custom ones and there is no @object variable, but there is a standard @payload variable, which contains id and name of the host, which can be used to retrieve the host via e.g. load_hosts loader or a separate API call. [1] - https://access.redhat.com/documentation/en-us/red_hat_satellite/6.13/html/administering_red_hat_satellite/using_webhooks_admin#webhooks-available-events_admin
Thank you for clearing that up, Oleh! With that i was able to see what I was doing wrong and provide the right way to get the data returned by the event. Marking as closed. Thanks again.