Bug #10980
closed
nillclass error wont allow editing of hosts.
Added by Jelle B. about 9 years ago.
Updated about 9 years ago.
Description
http://pastebin.com/3VFQhc40
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.
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?
- 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.
Also available in: Atom
PDF