Project

General

Profile

Actions

Bug #1341

closed

Unknown Variables in partition tables

Added by Markus Falb over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Unattended installations
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

According #1044 partition tables are parsed by erb.

bla<%= @osver -%>blubb
blablubb

bla<%= @host.name -%>blubb

/usr/share/foreman/vendor/gems/safemode-1.0/lib/safemode/jail.rb:17:in `method_missing': undefined method 'name' for Safemode::Jail (NilClass)
/usr/share/foreman/app/controllers/unattended_controller.rb:163:in `load_template_vars'
/usr/share/foreman/lib/foreman/renderer.rb:7:in `render_safe'
/usr/share/foreman/lib/foreman/renderer.rb:45:in `pxe_render'
/usr/share/foreman/app/models/host.rb:225:in `diskLayout'
/usr/share/foreman/app/controllers/unattended_controller.rb:185:in `kickstart_attributes'
(eval):1:in `load_template_vars'
/usr/share/foreman/app/controllers/unattended_controller.rb:163:in `load_template_vars'

bla<% if "bla" == "bla" ->bla< end -%>blubb
blablablubb

It seems to me that partition table is parsed, but the Variables as listed in http://theforeman.org/projects/foreman/wiki/TemplateWriting are not available.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #21172: Unknown Variables in partition tables <%= @osver %>ClosedIvan Necas10/02/2017Actions
Actions #1

Updated by Markus Falb over 12 years ago

I figured out that the @host.XXX variables are accessible if i deactivate safe rendering, but I have to refer to it without the leading @host.

Instead of <%= @host.name -> this is working: <= name -%>
Confusing, but working.

Actions #2

Updated by Ohad Levy over 12 years ago

  • Target version set to 1.0
Actions #3

Updated by Ohad Levy over 12 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Ivan Necas over 6 years ago

  • Related to Bug #21172: Unknown Variables in partition tables <%= @osver %> added
Actions

Also available in: Atom PDF