Preview of PXELinux global default errs
When using the preview function while editing the "PXELinux global default" template an error is returned in the UI.
"There was an error rendering the PXELinux global default template: undefined method `each' for nil:NilClass."
I've attached a traceback. It appears this errors is caused by not passing the @profiles variable into the template.
- Related to Feature #11035: Allow all templates preview during their creation and editing added
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/community-templates/pull/375 added
Had the same problem rendering the PXEGrub2 template on 1.14.2. I am using Foreman with bare metal machines only and do not have any profiles defined.
Fortunately the fix is simple and I created a pull request with fixes for the 3 affected templates.
Also available in: Atom