Skip to content

Commit

Permalink
Provisioning form: "logical_cpus" is called "cpu_total_cores".
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Dec 3, 2017
1 parent c0f787f commit 6c728c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/application_controller/miq_request_methods.rb
Expand Up @@ -401,7 +401,7 @@ def build_vm_grid(vms, sort_order = nil, sort_by = nil, filter_by = nil)
"name" => _("Name"),
"operating_system.product_name" => _("Operating System"),
"platform" => _("Platform"),
"logical_cpus" => _("CPUs"),
"cpu_total_cores" => _("CPUs"),
"mem_cpu" => _("Memory"),
"allocated_disk_storage" => _("Disk Size"),
"deprecated" => _("Deprecated"),
Expand All @@ -415,7 +415,7 @@ def build_vm_grid(vms, sort_order = nil, sort_by = nil, filter_by = nil)
# currently the only ones that support the field.
headers["image?"] = _("Type") if vms.any? { |vm| vm.respond_to?(:image?) }

integer_fields = %w(allocated_disk_storage mem_cpu logical_cpus v_total_snapshots)
integer_fields = %w(allocated_disk_storage mem_cpu cpu_total_cores v_total_snapshots)

filtered_vms = vms.select { |x| filter_by.call(x) }

Expand Down
2 changes: 1 addition & 1 deletion app/views/miq_request/_pre_prov.html.haml
Expand Up @@ -14,7 +14,7 @@
%tr
- id = @edit[:req_id] || "new"
- ["name", "image?", "operating_system.product_name", "platform",
"logical_cpus", "mem_cpu", "allocated_disk_storage", "deprecated",
"cpu_total_cores", "mem_cpu", "allocated_disk_storage", "deprecated",
"ext_management_system.name", "v_total_snapshots", "cloud_tenant"].each do |column_name|
- if @edit[:vm_headers].include?(column_name)
%th
Expand Down

0 comments on commit 6c728c5

Please sign in to comment.