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

Also available in: Atom PDF