Actions
Bug #10980
closednillclass error wont allow editing of hosts.
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
I have a fresh install of 1.8.2 with the latest plugins etc on debian Jessie 8.1, with a mysql database backend.
Dont fully get the code so I will leave the pasty speak for it self.
If you need me to add something please let me know.
Updated by Dominic Cleal over 9 years ago
2015-07-02 10:43:04 [W] Operation FAILED: undefined method `uniq' for nil:NilClass
2015-07-02 10:43:04 [D] /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman_salt-2.1.0/app/models/foreman_salt/concerns/hostgroup_extensions.rb:31:in `inherited_salt_module_ids'
My suspicion is the code is effectively doing: [].inject(&:+).uniq
, which will result in nil.uniq
. Maybe it should do .inject([], &:+)
instead?
Updated by Stephen Benjamin over 9 years ago
- Status changed from New to Resolved
That code's been refactored for foreman_salt 3.0 (with foreman 1.9), so this should be fixed.
Actions