Skip to content

Commit

Permalink
Fixes #28725 - prevent image field from disabling on host form
Browse files Browse the repository at this point in the history
While creating a host using compute_profile, the image field
under OS tab remain disabled & user won't be able to select
image for provisioning.
With this commit, it prevents this behavior on host form.
  • Loading branch information
kgaikwad authored and Shira Maximov committed Jan 23, 2020
1 parent 200ffea commit 6bad7d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/host_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ function update_capabilities(capabilities) {
} else if (capabilities.length > 0) {
$('#manage_network_build').hide();
$('#host_provision_method_' + capabilities[0]).click();
if (capabilities[0].toLowerCase() === 'image') {
image_provision_method_selected();
}
}

if (capabilities.length >= 2) {
Expand Down

0 comments on commit 6bad7d9

Please sign in to comment.