Project

General

Profile

Actions

Bug #9683

open

Operating system family name not consistent inside templates

Added by Martin Hovmöller about 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 1 (0 open1 closed)

Related to Foreman - Bug #3721: OS families should use a label instead of class name when renderedClosedGreg Sutcliffe11/22/2013Actions
Actions #1

Updated by Dominic Cleal about 9 years ago

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

Updated by Dominic Cleal about 9 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.

Actions

Also available in: Atom PDF