Actions
Bug #18059
closedRendering RABL for host/main fails
Description
Currently, Katello does not add its views to the Rabl paths. For this reason, when I try to run a playbook with foreman_ansible, I get:
| RuntimeError - Cannot find rabl template 'katello/api/v2/content_facet/base_with_root' within registered (["/home/vagrant/foreman/app/views", "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman_discovery-8.0.0/app/views"]) view paths!:
foreman_ansible InventoryCreator is trying to render the api/v2/hosts/main using Rabl, however it fails to do so as the content_facet isn't available to it.
Solution: add an initializer to configure view paths for Rabl in the Katello engine
Actions