Skip to content

Commit

Permalink
Match on identical architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkirby committed Oct 18, 2016
1 parent afd7264 commit fba1f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vmpooler/vsphere_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def find_folder(foldername)
end

def get_host_utilization(host, model=nil, limit=90)
if model and not host.hardware.cpuPkg[0].description == model
if model and not host.hardware.cpuPkg[0].description.split().include? model
return nil
end
if not host.runtime.inMaintenanceMode
Expand Down Expand Up @@ -244,7 +244,7 @@ def find_least_used_compatible_host(vm)
end

source_host = vm.summary.runtime.host
model = source_host.hardware.cpuPkg[0].description
model = source_host.hardware.cpuPkg[0].description.split()[4]
cluster = source_host.parent
target_hosts = []
cluster.host.each do |host|
Expand Down

0 comments on commit fba1f73

Please sign in to comment.