Bug #9683
open
Operating system family name not consistent inside templates
Added by Martin Hovmöller almost 10 years ago.
Updated almost 10 years ago.
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 to Bug #3721: OS families should use a label instead of class name when rendered added
- 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