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.
Updated by Marek Hulán over 9 years ago
To simulate, uninstall redhat-lsb package.
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 (
)
Updated by Marek Hulán over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Actions