Project

General

Profile

Actions

Bug #9694

open

Usage of "osver" in templates give error when setting build mode.

Added by Martin Hovmöller over 9 years ago. Updated over 9 years ago.

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

Description

If osver is used instead of host.operatingsystem.major, the error "Failure parsing <template name>: undefined method `<' for nil:NilClass." when putting the host in build mode.

The host is set to build mode successfully though, and the template rendering works fine.


Related issues 2 (1 open1 closed)

Related to Foreman - Feature #746: Generate all the Host template when click on Build to avoid errors during installationClosedShlomi Zadok03/15/2011Actions
Related to Foreman - Bug #10338: Using template_name variable in template causes error in Build ReviewNew04/30/2015Actions
Actions #1

Updated by Dominic Cleal over 9 years ago

  • Project changed from Docker to Foreman
  • Category set to Templates
Actions #2

Updated by Dominic Cleal over 9 years ago

  • Related to Feature #746: Generate all the Host template when click on Build to avoid errors during installation added
Actions #3

Updated by Dominic Cleal over 9 years ago

  • Related to Bug #10338: Using template_name variable in template causes error in Build Review added
Actions

Also available in: Atom PDF