Project

General

Profile

Actions

Bug #12417

open

Preview of PXELinux global default errs

Added by Brandon Weeks over 8 years ago. Updated about 7 years ago.

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

Description

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.


Files

traceback.txt traceback.txt 14.8 KB Brandon Weeks, 11/06/2015 08:04 PM

Related issues 1 (0 open1 closed)

Related to Foreman - Feature #11035: Allow all templates preview during their creation and editingClosedMarek Hulán07/07/2015Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

  • Related to Feature #11035: Allow all templates preview during their creation and editing added
Actions #2

Updated by The Foreman Bot about 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/community-templates/pull/375 added
Actions #3

Updated by Konrad Scherer about 7 years ago

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.

Actions

Also available in: Atom PDF