Project

General

Profile

Actions

Bug #18059

closed

Rendering RABL for host/main fails

Added by Daniel Lobato Garcia about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 #1

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Daniel Lobato Garcia
  • Pull request https://github.com/Katello/katello/pull/6541 added
Actions #2

Updated by Anonymous about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Justin Sherrill about 8 years ago

  • Translation missing: en.field_release set to 188
Actions #4

Updated by Daniel Lobato Garcia almost 8 years ago

  • Target version set to 169
Actions #5

Updated by Brad Buckingham almost 8 years ago

  • Target version deleted (169)
Actions #6

Updated by Daniel Lobato Garcia almost 8 years ago

  • Target version set to 1.11.0
Actions

Also available in: Atom PDF