My Foreman version is: *Version 1.15.6 *
Discovery plugin: *9.1.5*

In my PXELinux provisioning template, I use the *host_param('param_name')* 
construct to access parameters assigned *to the operating system*. Just as 
described here: 
http://projects.theforeman.org/projects/foreman/wiki/templatewriting#Host-or-host-group-parameters
 .
This works fine -- however...

If a single hostgroup parameter exists (don't mistake with Puppet class 
parameter), then Discovery auto-provision fails to resolve the 
*host_param('param_name') 
**from the operating system parameters*.
*<%= host_param('os_param_name') %> *gets populated with nothing (empty 
string).
Same goes for the old syntax *<%= **@host.params['parameter_name'] %> *.

This happens only when using auto-provision. Does *not* occur when:
- using 'Provision' on a discovered host
- using 'Build' on hosts page
- using 'Rebuild config'  on hosts page


Probably just a minor code stuff... Help appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to