Problem:
Hosts/Content Hosts will not display and displays an error.
Expected outcome:
Display content hosts as per usual
Foreman and Proxy versions:
3.7.1
Foreman and Proxy plugin versions:
Distribution and version:
RHEL 8.9
Other relevant data:
Danger alert:Error
Cannot find rabl template 'api/v2/host/main' within registered (["/usr/share/foreman/app/views", "/usr/share/gems/gems/foreman_templates-9.3.3/app/views", "/usr/share/gems/gems/katello-4.9.2/app/views"]) view paths!
I created a directory /usr/share/foreman/app/views/api/v2/host (note: NOT hosts) and created a symlink to /usr/share/foreman/app/views/api/v2/hosts/main.json.rabl in it. Now Content Hosts display works as expected. There appears to be a typo in code somewhere (host instead of hosts). I would normally find and report the location but we have several people on vacation and I am a little busy.