Template Marcos: Hardware model; safe_mode Settings

Hello,
is the a way to access the following settings in templates:

  • hardware model of host- safe mode enabled or not; eg safe_mode?
    Thanks!

Hello

Not sure if I understood correctly. You can access hw model properties like
this

<%= @host.model.name %>

which should work when safe_mode is disaled. We seem to lack hw model
attributes whitelisting, if you need to access some of them while safe mode is
enabled, please open an issue in our tracker at
http://projects.theforeman.org/

··· On Sunday 18 of October 2015 12:37:34 Daniel Helgenberger wrote: > Hello, > is the a way to access the following settings in templates: > - hardware model of host- safe mode enabled or not; eg safe_mode? > Thanks!


Marek