def get_orphan_volume_attachments(meta):
    orphan_volume_attachments = {}
    orphan_volume_attachment_t = Table('volume_attachment', meta, autoload=True)
    columns = [orphan_volume_attachment_t.c.id, orphan_volume_attachment_t.c.instance_uuid]
    orphan_volume_attachment_q = select(columns=columns, whereclause=and_((orphan_volume_attachment_t.c.deleted == 0)))
    for (orphan_volume_attachment_id, nova_instance_uuid) in orphan_volume_attachment_q.execute():
        orphan_volume_attachments[orphan_volume_attachment_id] = nova_instance_uuid
    return orphan_volume_attachments
def get_orphan_volume_attachments(meta):
    orphan_volume_attachments = {}
    orphan_volume_attachment_t = Table('volume_attachment', meta, autoload=True)
    columns = [orphan_volume_attachment_t.c.id, orphan_volume_attachment_t.c.instance_uuid]
    orphan_volume_attachment_q = select(columns=columns, whereclause=and_((orphan_volume_attachment_t.c.deleted == 0)))
    for (orphan_volume_attachment_id, nova_instance_uuid) in orphan_volume_attachment_q.execute():
        orphan_volume_attachments[orphan_volume_attachment_id] = nova_instance_uuid
    return orphan_volume_attachments