Skip to content

Commit a682e2f

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Don't rely on SQLAlchemy collections magically initializing __dict__"
2 parents ea7293c + c66a03b commit a682e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nova/db/sqlalchemy/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3873,7 +3873,7 @@ def security_group_create(context, values):
38733873
security_group_ref = models.SecurityGroup()
38743874
# FIXME(devcamcar): Unless I do this, rules fails with lazy load exception
38753875
# once save() is called. This will get cleaned up in next orm pass.
3876-
security_group_ref.rules
3876+
security_group_ref.rules = []
38773877
security_group_ref.update(values)
38783878
try:
38793879
with get_context_manager(context).writer.savepoint.using(context):

0 commit comments

Comments
 (0)