From 2464f65ddfcaa835faa7ff62d20fc478da1e7c2c Mon Sep 17 00:00:00 2001 From: Girija Soni Date: Thu, 3 Oct 2024 15:30:31 +0530 Subject: [PATCH] Fixes #37855 - Populate OS fields and pass correct network during import --- app/views/compute_resources_vms/form/vmware/_network.html.erb | 2 +- app/views/hosts/_operating_system.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/compute_resources_vms/form/vmware/_network.html.erb b/app/views/compute_resources_vms/form/vmware/_network.html.erb index 2631ded4349..8a2c5113474 100644 --- a/app/views/compute_resources_vms/form/vmware/_network.html.erb +++ b/app/views/compute_resources_vms/form/vmware/_network.html.erb @@ -5,5 +5,5 @@ <% cluster_id = params.fetch(:host, {}).fetch(:compute_attributes, {}).fetch(:cluster, nil).presence %> <%= select_f f, :network, vsphere_networks(compute_resource), :first, :last, { }, :class => "col-md-3 vmware_network", - :size => "col-md-8", :disabled => !new_vm, + :size => "col-md-8", :label => _('Network'), :label_size => "col-md-3" %> diff --git a/app/views/hosts/_operating_system.html.erb b/app/views/hosts/_operating_system.html.erb index 538a47ac43f..e04793f6b19 100644 --- a/app/views/hosts/_operating_system.html.erb +++ b/app/views/hosts/_operating_system.html.erb @@ -1,6 +1,6 @@ <%= select_f f, :architecture_id, accessible_resource(f.object, :architecture), :id, :to_label, {:include_blank => true}, - {:onchange => 'architecture_selected(this);', :'data-url' => method_path('architecture_selected'), :'data-type' => controller_name.singularize, + {:onchange => 'architecture_selected(this);', :'data-url' => method_path('architecture_selected'), :'data-type' => "host", :help_inline => :indicator, :required => true} %>