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. Change-Id: Ia3f62c93dc2621474907906aeda0ddf1469d5c8f Signed-off-by: Liang Fang <liang.a.fang@intel.com>
This commit is contained in:
parent
65d1e2bddc
commit
e468e97ab9
@ -671,7 +671,7 @@ class Reservation(BASE, CinderBase):
|
|||||||
"QuotaUsage",
|
"QuotaUsage",
|
||||||
foreign_keys=usage_id,
|
foreign_keys=usage_id,
|
||||||
primaryjoin='and_(Reservation.usage_id == QuotaUsage.id,'
|
primaryjoin='and_(Reservation.usage_id == QuotaUsage.id,'
|
||||||
'QuotaUsage.deleted == 0)')
|
'QuotaUsage.deleted == False)')
|
||||||
quota = relationship(
|
quota = relationship(
|
||||||
"Quota",
|
"Quota",
|
||||||
foreign_keys=allocated_id,
|
foreign_keys=allocated_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user