a
This commit is contained in:
parent
e09e5fd298
commit
e79363e4a3
4 changed files with 165 additions and 254 deletions
|
|
@ -42,7 +42,7 @@ def get_suitable_host(vm_specs, hosts=None):
|
|||
vms = vm_pool.by_host(host.key)
|
||||
|
||||
# Filter them by status
|
||||
vms = vm_pool.except_status(VMStatus.requested_new, vms)
|
||||
vms = vm_pool.by_status(VMStatus.running, vms)
|
||||
|
||||
running_vms_specs = [vm.specs for vm in vms]
|
||||
# Accumulate all of their combined specs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue