@contract()
def get_current_vms(vir_connection):
    vm_uuids = {}
    for vm_id in vir_connection.listDomainsID():
        try:
            vm = vir_connection.lookupByID(vm_id)
            vm_uuids[vm.UUIDString()] = vm.state(0)[0]
        except libvirt.libvirtError:
            pass
    return vm_uuids
Navigate to the most appropriate location for this navigation.
dataset/ETHPy150Open beloglazov/openstack-neat/neat/locals/collector.py/get_current_vms--crossover with--dataset/ETHPy150Open google/grr/grr/gui/plugins/notifications.py/ViewNotifications.BuildHashFromNotification