Project

General

Profile

Actions

Bug #9694

open

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

Added by Martin Hovmöller almost 10 years ago. Updated almost 10 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

Also available in: Atom PDF