Project

General

Profile

Actions

Bug #11233

closed

NoMethodError: undefined method `split' for nil:NilClass

Added by Marek Hulán over 9 years ago. Updated over 6 years ago.

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

Description

A user reported failed importing tasks with following issue.

NoMethodError: undefined method `split' for nil:NilClass
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_chef-0.1.5/app/models/foreman_chef/fact_parser.rb:9:in `operatingsystem'
/usr/share/foreman/app/models/host/base.rb:157:in `block in set_non_empty_values'
/usr/share/foreman/app/models/host/base.rb:156:in `each'

It seems facts['lsb::release'] || facts['platform_version'] might be nil so we should be able to handle this case.

Actions #1

Updated by Marek Hulán over 9 years ago

To simulate, uninstall redhat-lsb package.

Actions #2

Updated by Marek Hulán over 9 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Marek Hulán
  • Translation missing: en.field_release set to 75
  • Pull request https://github.com/theforeman/foreman_chef/pull/26 added
  • Pull request deleted ()
Actions #3

Updated by Marek Hulán over 9 years ago

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

Also available in: Atom PDF