Project

General

Profile

Bug #9694

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

Added by Martin Hovmöller about 6 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
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

Related to Foreman - Feature #746: Generate all the Host template when click on Build to avoid errors during installationClosed2011-03-15
Related to Foreman - Bug #10338: Using template_name variable in template causes error in Build ReviewNew2015-04-30

History

#1 Updated by Dominic Cleal about 6 years ago

  • Project changed from Docker to Foreman
  • Category set to Templates

#2 Updated by Dominic Cleal about 6 years ago

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

#3 Updated by Dominic Cleal almost 6 years ago

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

Also available in: Atom PDF