Merge "Change the load method of SG rule "default_security_group"" into stable/2024.1

This commit is contained in:
Zuul 2024-09-23 10:39:30 +00:00 committed by Gerrit Code Review
commit 25dd1a488d

View File

@ -115,7 +115,7 @@ class DefaultSecurityGroup(model_base.BASEV2, model_base.HasProjectPrimaryKey):
primaryjoin="SecurityGroup.id==DefaultSecurityGroup.security_group_id", primaryjoin="SecurityGroup.id==DefaultSecurityGroup.security_group_id",
) )
security_group_rule = orm.relationship( security_group_rule = orm.relationship(
SecurityGroupRule, lazy='joined', SecurityGroupRule, lazy='selectin',
backref=orm.backref('default_security_group'), backref=orm.backref('default_security_group'),
primaryjoin="foreign(SecurityGroupRule.security_group_id) == " primaryjoin="foreign(SecurityGroupRule.security_group_id) == "
"DefaultSecurityGroup.security_group_id", "DefaultSecurityGroup.security_group_id",