Actions
Bug #11233
closedNoMethodError: undefined method `split' for nil:NilClass
Status:
Closed
Priority:
Normal
Assignee:
Category:
foreman_chef
Target version:
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