From: Ollie Leahy Date: Wed, 27 Feb 2013 18:30:38 +0000 (+0000) Subject: Fix query filter in volume_get_active_by_window() X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1b330677b283ce7b5f3fa57efe3a26b00ff38be1;p=openstack-build%2Fcinder-build.git Fix query filter in volume_get_active_by_window() Fixes LP bug #1131320 Change-Id: Iec51ecbe49a76e3a5b7374b04f20949c77c52984 --- diff --git a/cinder/db/sqlalchemy/api.py b/cinder/db/sqlalchemy/api.py index dceaf45c0..67a4e1e7f 100644 --- a/cinder/db/sqlalchemy/api.py +++ b/cinder/db/sqlalchemy/api.py @@ -1523,7 +1523,7 @@ def volume_get_active_by_window(context, session = get_session() query = session.query(models.Volume) - query = query.filter(or_(models.Volume.deleted_at is None, + query = query.filter(or_(models.Volume.deleted_at == None, models.Volume.deleted_at > begin)) if end: query = query.filter(models.Volume.created_at < end)