Added a todo comment

This commit is contained in:
Anton Beloglazov 2012-10-01 14:46:43 +10:00
parent eb73cec43c
commit 2176e0ce7c

View File

@ -274,6 +274,8 @@ def get_current_vms(vir_connection):
:return: The list of VM UUIDs from libvirt.
:rtype: list(str)
"""
# TODO: need to check the status of VMs, whether it's migrating
# If a VM is migrating in, it shouldn't be taken into account
vm_uuids = []
for vm_id in vir_connection.listDomainsID():
vm_uuids.append(vir_connection.lookupByID(vm_id).UUIDString())