]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix query filter in volume_get_active_by_window()
authorOllie Leahy <oliver.leahy@hp.com>
Wed, 27 Feb 2013 18:30:38 +0000 (18:30 +0000)
committerOllie Leahy <oliver.leahy@hp.com>
Wed, 27 Feb 2013 18:30:38 +0000 (18:30 +0000)
Fixes LP bug #1131320

Change-Id: Iec51ecbe49a76e3a5b7374b04f20949c77c52984

cinder/db/sqlalchemy/api.py

index dceaf45c004f701da0edc7e2ae22930d63529d06..67a4e1e7f6c35ff42c9c26cf0a261d29b88da86a 100644 (file)
@@ -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)