Skip to content

Commit

Permalink
Fixes #37855 - Populate OS fields and pass correct network during import
Browse files Browse the repository at this point in the history
  • Loading branch information
girijaasoni committed Sep 23, 2024
1 parent 2d4f34a commit 88873d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/compute_resources_vms/form/vmware/_network.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<%= select_f f, :type, compute_resource.nictypes, :first, :last, { },
:class => "col-md-3 vmware_type",
:size => "col-md-8", :disabled => !new_vm,
:size => "col-md-8",
:label => _('NIC type'), :label_size => "col-md-3" %>
<% 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" %>
2 changes: 1 addition & 1 deletion app/views/hosts/_operating_system.html.erb
Original file line number Diff line number Diff line change
@@ -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} %>

<span id="os_select">
Expand Down

0 comments on commit 88873d1

Please sign in to comment.