Fix for field type error
The data type of QuotaUsage.deleted is boolean, here assigned an
integer to a boolean. Not good to assume 0 is the same as False.
Similar sentence such as 'VolumeTypeProjects.deleted == 0' is correct
because the type of VolumeTypeProjects.deleted is integer.
@@ -671,7 +671,7 @@ class Reservation(BASE, CinderBase):
"QuotaUsage",
foreign_keys=usage_id,
primaryjoin='and_(Reservation.usage_id == QuotaUsage.id,'
- 'QuotaUsage.deleted == 0)')
+ 'QuotaUsage.deleted == False)')
quota = relationship(
"Quota",
foreign_keys=allocated_id,
