def fix_error_deleting_snapshots(meta, error_deleting_snapshots):
    snapshots_t = Table('snapshots', meta, autoload=True)
    for error_deleting_snapshots_id in error_deleting_snapshots:
        log.info('-- action: deleting snapshot id: %s', error_deleting_snapshots_id)
        now = datetime.datetime.utcnow()
        delete_snapshot_q = snapshots_t.update().where((snapshots_t.c.id == error_deleting_snapshots_id)).values(updated_at=now, deleted_at=now, deleted=1)
        delete_snapshot_q.execute()
def fix_error_deleting_snapshots(meta, error_deleting_snapshots):
    snapshots_t = Table('snapshots', meta, autoload=True)
    for error_deleting_snapshots_id in error_deleting_snapshots:
        log.info('-- action: deleting snapshot id: %s', error_deleting_snapshots_id)
        now = datetime.datetime.utcnow()
        delete_snapshot_q = snapshots_t.update().where((snapshots_t.c.id == error_deleting_snapshots_id)).values(updated_at=now, deleted_at=now, deleted=1)
        delete_snapshot_q.execute()