This commit is contained in:
ahmadbilalkhalid 2019-09-12 21:38:12 +05:00
commit e79363e4a3
4 changed files with 165 additions and 254 deletions

View file

@ -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