Bug #12618
closed
Compute profile overrides compute attributes provided in host form
Added by Marek Hulán almost 9 years ago.
Updated over 6 years ago.
Category:
Compute resources
|
Description
If I select compute profile and in Virtual Machine tab I change some compute attr (e.g. image to be used or amount of RAM) it gets overiden by what's set in compute profile when I submit.
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2937 added
- Related to Bug #12461: Compute profiles are not applied when inherited added
- Translation missing: en.field_release set to 63
This looks like a regression introduced by #12461, which calls set_compute_attributes from set_hostgroup_defaults without checking the value of compute_attributes.
I think that call is required, after you select a hostgroup you need to refresh compute attributes from profile unconditionally. Maybe now we can even remove the condition from before_validation if it makes more sense. Anyway thanks for quick look.
- Pull request https://github.com/theforeman/foreman/pull/2957 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF