for vm_type, lower_vm_type in vm_types.items():
if lower_rid.startswith(lower_vm_type) and not rid.startswith(vm_type):
bad[rid] = vm_type
for vm_type, lower_vm_type in vm_types.items():
if lower_rid.startswith(lower_vm_type) and not rid.startswith(vm_type):
bad[rid] = vm_type