Project

General

Profile

Actions

Bug #17565

closed

set_hostgroup_defaults_with_chef_attributes: wrong number of argument

Added by Lionel Beard about 8 years ago. Updated over 6 years ago.

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

Description

Hi,

I have just updated my Foreman installation from 1.12 to 1.13.2, and I got this error when selecting Host Group on host creation form:

ArgumentError: wrong number of arguments (1 for 0)
 | /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman_chef-0.4.0/app/models/foreman_chef/concerns/host_extensions.rb:10:in `set_hostgroup_defaults_with_chef_attributes'
 | /usr/share/foreman/app/controllers/hosts_controller.rb:655:in `process_hostgroup'

Because of this error, I was unable to select a compute resource (box stays greyed).

This issue was fixed by modifying line 655 into /usr/share/foreman/app/controllers/hosts_controller.rb file from:
@host.set_hostgroup_defaults true
to
@host.set_hostgroup_defaults

Lionel

Actions #1

Updated by Marek Hulán almost 8 years ago

  • Status changed from New to Duplicate

I believe this has been fixed via #16539 and will be part of 0.4.1 release that I'm going to build soon. If updating does not help, please let me know.

Actions

Also available in: Atom PDF