Bug #24493
closedCannot add host parameters to hosts: Name has already been taken
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1609764
Description of problem:
Cannot add any Host Parameters to the Hosts in UI
because it tries to add them twice, so it raise 'Name has already been taken' error
Version-Release number of selected component (if applicable):
6.4, snap 14
How reproducible:
always
Steps to Reproduce:
1. navigate to Hosts > All Hosts > select > Edit > Parameters
2. button Add Parameter
3. fill any values to Name and Value
4. button Submit
Actual results:
all entered Host Parameters are shown twice and there is an error message saying Name has already been taken
Expected results:
Host Parameter is added
Additional info:
it works in 6.3, it is a regression
Updated by Ivan Necas almost 7 years ago
- Subject changed from Cannot add host parameters to hosts: Name has already been taken to Cannot add host parameters to hosts: Name has already been taken
This is a regression introduced by #23837, specifically https://github.com/theforeman/foreman-tasks/pull/349
The issue is the `assign_attributes` can have already some side-effects for sub-resources, and calling `super` causes double-creation of the resources.