Project

General

Profile

Bug #18054

Katello Atomic Kickstart Default template has undefined local variable "os_major"

Added by Thomas McKay over 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Provisioning
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

2017-01-12T17:42:54 cf119537 [app] [I]   Rendered inline template (1385.8ms)
2017-01-12T17:42:54 cf119537 [app] [W] There was an error rendering the Katello Atomic Kickstart Default template: 
 | ActionView::Template::Error: undefined local variable or method `os_major' for #<#<Class:0x007ffa5f9b59e0>:0x007ffa61ffd878>
 | (erb):14:in `render_safe'
 | /home/vagrant/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/erb.rb:863:in `eval'
 | /home/vagrant/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/erb.rb:863:in `result'
 | /home/vagrant/code/foreman/lib/foreman/renderer.rb:55:in `render_safe'
 | /home/vagrant/code/foreman/lib/foreman/renderer.rb:144:in `unattended_render'
 | inline template:1:in `_e9f2b1b575b772aa08a1bfdb677ebe14'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/template.rb:145:in `block in render'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:166:in `instrument'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionview-4.2.7.1/lib/action_view/template.rb:333:in `instrument'

Associated revisions

Revision 21bb2b59 (diff)
Added by Partha Aji over 4 years ago

Fixes #18054 - Fixes Atomic KS Template error

The atomic ks template after
https://github.com/Katello/katello/pull/6522
had a bug that said something along the lines of
""undefined local variable or method `os_major' ""

This fix corrects that issue by removing the need for os_major since
atomic kickstarts are anyway only being used from RHEL 7 onwards.

History

#1 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6542 added

#2 Updated by Thomas McKay over 4 years ago

  • Bugzilla link set to 1406506

#3 Updated by Partha Aji over 4 years ago

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

#4 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 188

Also available in: Atom PDF