Project

General

Profile

Actions

Bug #16081

closed

Facts page in core expects .host relation

Added by Daniel Lobato Garcia almost 8 years ago. Updated almost 8 years ago.

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

Description

The /fact_values page in Foreman has a helper that expects fact_value.host at several places:

https://github.com/theforeman/foreman/blob/develop/app/helpers/fact_values_helper.rb#L18
https://github.com/theforeman/foreman/blob/develop/app/helpers/fact_values_helper.rb#L29

However, fact values for discovered hosts will not respond to that method.
You can call fact_value.host_id just fine, but not fact_value.host.

That causes a 500 on any /fact_values page that needs to show discovered hosts facts


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #16082: FactValue association to Host should be against Host::BaseClosedTomer Brisker08/12/2016Actions
Actions

Also available in: Atom PDF