theforeman / foreman_hooks

Run custom hook scripts on Foreman events
http://m0dlx.com/blog/Extending_Foreman_quickly_with_hook_scripts.html
GNU General Public License v3.0
56 stars 50 forks source link

Fixed RABL view paths #36

Closed lzap closed 8 years ago

lzap commented 8 years ago

When hooking host/create or after_create and creating it via UI with Katello plugin enabled, create RABL does reference facet code references something from Katello leading to error:

Cannot find rabl template 'katello/api/v2/content_facet/base_with_root' within
registered (["app/views", "/usr/share/foreman/app/views"]) view paths!

This is because Katello extend the base RABL with some extra things.

lzap commented 8 years ago

Upstream bug for the record: https://bugzilla.redhat.com/show_bug.cgi?id=1337200

lzap commented 8 years ago

@domcleal can you take a look please? It's a small change.

ohadlevy commented 8 years ago

looks good to me, @domcleal ?

bkearney commented 8 years ago

@domcleal | @lzap how does this look? we would like to pull it in downstream.

domcleal commented 8 years ago

Merged to include the PR description, thanks @lzap.