Changing os in hostgroup edit form triggers an ajax call to /hostgroups/os_selected and the response is used as a new set of fields to be displayed in the form. However, some values from the form were not passed to the backend as part of this request so certain values, namely partition table and selected media, could get lost.
Related issues
Bug #36280: Changing OS in hostgroup edit form reset partition table and media even when it is not necessary
Fixes #36280 - Persist attributes on os_select
Changing os in hostgroup edit form triggers an
ajax call to /hostgroups/os_selected and the
response is used as a new set of fields to be
displayed in the form. However, some values from
the form were not passed to the backend as part
of this request so certain values, namely
partition table and selected media, could get
lost.