def fix_deleted_services_still_used_in_volumes(meta, deleted_services_still_used_in_volumes):
    services_t = Table('services', meta, autoload=True)
    for deleted_services_still_used_in_volumes_id in deleted_services_still_used_in_volumes:
        log.info('-- action: undeleting service uuid: %s', deleted_services_still_used_in_volumes_id)
        undelete_services_q = services_t.update().where((services_t.c.uuid == deleted_services_still_used_in_volumes_id)).values(deleted=0, deleted_at=None)
        undelete_services_q.execute()
def fix_deleted_services_still_used_in_volumes(meta, deleted_services_still_used_in_volumes):
    services_t = Table('services', meta, autoload=True)
    for deleted_services_still_used_in_volumes_id in deleted_services_still_used_in_volumes:
        log.info('-- action: undeleting service uuid: %s', deleted_services_still_used_in_volumes_id)
        undelete_services_q = services_t.update().where((services_t.c.uuid == deleted_services_still_used_in_volumes_id)).values(deleted=0, deleted_at=None)
        undelete_services_q.execute()