Project

General

Profile

Bug #11723

Build PXE Default fails with error

Added by Phirince Philip almost 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:
Difficulty:
trivial
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Here's the error seen:

failed to process template: undefined method `token' for nil:NilClass

This is because of this line:
:token => (@host.token.value unless @host.token.nil?)

In this case, @host is nil.

-PP


Related issues

Related to Foreman - Feature #7828: Provide base URL of Foreman via foreman_url Duplicate2014-10-07
Related to Foreman - Bug #14232: Missing variable to include Sat 6 Hostname in PXE MenusClosed2016-03-16
Has duplicate Foreman - Bug #2449: Fix foreman_url helper so it be used in the PXE Default templateDuplicate2013-05-01

Associated revisions

Revision 536fd199 (diff)
Added by Phirince Philip almost 4 years ago

fixes #11723 - foreman_url usable from default PXE template

Revision f65a2ae9 (diff)
Added by Phirince Philip almost 4 years ago

fixes #11723 - foreman_url usable from default PXE template

(cherry picked from commit 536fd1994a60996318cb6be0d0bb4046e22c2f6f)

History

#1 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2687 added
  • Pull request deleted ()

#2 Updated by Dominic Cleal almost 4 years ago

  • Related to Feature #7828: Provide base URL of Foreman via foreman_url added

#3 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 88

#4 Updated by Phirince Philip almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Dominic Cleal over 3 years ago

  • Has duplicate Bug #2449: Fix foreman_url helper so it be used in the PXE Default template added

#6 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #14232: Missing variable to include Sat 6 Hostname in PXE Menus added

Also available in: Atom PDF