Bug #37834
openAutomatic firmware selection for VMware is not working on the `compute_attributes` form
Description
When selecting the `Automatic` firmware type on the `compute_attributes` form, it is incorrectly changed to `BIOS`, which is the default firmware type when no specific firmware is selected.
This issue occurs because the `compute_attributes` form shares the `_base.erb` template with the host form, where `Automatic` firmware is valid and converted to a specific firmware type based on the selected `PXE Loader`. However, in the `compute_attributes` form we don't pass the `PXE Loader`, and when the firmware type is passed to the VM object, `Automatic` is not a valid value.
Steps to reproduce:
1. Have a compute resource of type VMware created.
2. Create a compute profile of any type.
3. Choose `Automatic` firmware and save the form.
4. Click on the new compute profile you created and see that the firmware is set to `BIOS` instead of `Automatic`.
Updated by Nofar Alfassi 4 months ago
Note:
This issue is currently affecting only VMware compute resources. However, once the Firmware option is added to other compute resources, they will likely experience the same problem - see #10321 comment.