Fix ShareGroup sqlalchemy model ShareGroupTypes relation.
Query for deleted must look for 'False'.
Fixes manila manage db purge.
Closes-Bug: #1786769
Change-Id: I6d9966b257553749f73993e6d63951747131b570
(cherry picked from commit 4b8adbb805
)
This commit is contained in:
parent
ec8c500f17
commit
50b9599e18
@ -1085,10 +1085,10 @@ class ShareGroup(BASE, ManilaBase):
|
||||
ShareGroupTypes,
|
||||
backref="share_groups",
|
||||
foreign_keys=share_group_type_id,
|
||||
primaryjoin='and_('
|
||||
'ShareGroup.share_group_type_id == '
|
||||
'ShareGroupTypes.id,'
|
||||
'ShareGroup.deleted == 0)')
|
||||
primaryjoin="and_("
|
||||
"ShareGroup.share_group_type_id =="
|
||||
"ShareGroupTypes.id,"
|
||||
"ShareGroup.deleted == 'False')")
|
||||
_availability_zone = orm.relationship(
|
||||
"AvailabilityZone",
|
||||
lazy='immediate',
|
||||
|
Loading…
Reference in New Issue
Block a user