Project

General

Profile

Bug #12417

Preview of PXELinux global default errs

Added by Brandon Weeks about 6 years ago. Updated over 4 years ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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.

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

Related issues

Related to Foreman - Feature #11035: Allow all templates preview during their creation and editingClosed2015-07-07

Associated revisions

Revision 34c0e55f (diff)
Added by Konrad Scherer over 4 years ago

Refs #12417 - Fix rendering if no profiles are defined

History

#1 Updated by Dominic Cleal about 6 years ago

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

#2 Updated by The Foreman Bot over 4 years ago

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

#3 Updated by Konrad Scherer over 4 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.

Also available in: Atom PDF