Actions
Bug #11683
closedSpinner in puppet class parameters spinning indefinitely on hostgroup creation
Description
When creating a new hostgroup, a spinner in puppet class table under 'Parameters' tab appears and spins indefinitely.
To reproduce:
1) Configure > Hostgroups > New Hostgroup
2) select arbitrary Lifecycle Environment
3) select arbitrary Puppet Environment
4) go to 'Parameters' tab
5) spinner is spinning indefinitely as a result of failed call to the server
Root cause is that hostgroup id is expected in params (which naturally does not exists since hostgroup has not been created yet): https://github.com/theforeman/foreman/blob/develop/app/controllers/hostgroups_controller.rb#L93
And then in js function handling the call: https://github.com/theforeman/foreman/blob/develop/app/assets/javascripts/host_edit.js#L170-L199
Files
Actions