Project

General

Profile

Bug #9683

Operating system family name not consistent inside templates

Added by Martin Hovmöller over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

In the Hosts -> Operatings systems area, when choosing OS Family for a host, the Red Hat family is spelled just like that, "Red Hat".
When creating a template, the same family is named "Redhat".

This is obviously confusing and needs trial & error to even figure out how to use the host.operatingsystem.family parameter.


Related issues

Related to Foreman - Bug #3721: OS families should use a label instead of class name when renderedClosed2013-11-22

History

#1 Updated by Dominic Cleal over 7 years ago

  • Related to Bug #3721: OS families should use a label instead of class name when rendered added

#2 Updated by Dominic Cleal over 7 years ago

  • Subject changed from Operatingsystem family name not consistent. to Operating system family name not consistent inside templates
  • Category set to Templates

Yeah, the reason for this is that it's referring to Foreman's internal class names which have to be a certain format to be valid in Ruby. We changed the display version in #3721 which understandably makes it harder to write the templates, but makes it better in the UI.

It might be best if we can make better helpers available to the templates so instead of calling .family on the OS that we provide the display value? Or just document the internal names on TemplateWriting or similar.

Also available in: Atom PDF