Bug #5690

Taxonomy fact name not retrieved from settings

Added by Stephen Benjamin over 3 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Stephen Benjamin
Category:Facts
Target version:Sprint 23
Difficulty: Bugzilla link:1107695
Found in release: Pull request:
Story points-
Velocity based estimate-
Release1.5.1Release relationshipAuto

Description

In app/models/host/base.rb:

taxonomy_from_fact = taxonomy_class.find_by_title(facts["#{taxonomy}_fact"])

should be

taxonomy_from_fact = taxonomy_class.find_by_title(facts[Setting["#{taxonomy}_fact"]])

Related issues

Related to Foreman - Bug #3214: No location / Organization if host added by default from ... Closed 10/08/2013
Duplicated by Foreman - Bug #5699: The "location_fact" setting does not actually look for a ... Duplicate 05/13/2014

Associated revisions

Revision ea450c06
Added by Stephen Benjamin over 3 years ago

fixes #5690 - determine host taxonomy fact based on setting value

History

#1 Updated by Dominic Cleal over 3 years ago

  • Release set to 1.5.1

#2 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #3214: No location / Organization if host added by default from puppet run added

#4 Updated by Stephen Benjamin over 3 years ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Stephen Benjamin

#5 Updated by Dominic Cleal over 3 years ago

  • Target version set to Sprint 23

#6 Updated by Dominic Cleal over 3 years ago

  • Duplicated by Bug #5699: The "location_fact" setting does not actually look for a custom fact added

#7 Updated by Stephen Benjamin over 3 years ago

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

#8 Updated by Bryan Kearney over 3 years ago

  • Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1107695

Also available in: Atom PDF