Project

General

Profile

Actions

Bug #10980

closed

nillclass error wont allow editing of hosts.

Added by Jelle B. over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

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?

Actions #2

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

Also available in: Atom PDF