Merge "Don't rely on SQLAlchemy collections magically initializing __dict__"

This commit is contained in:
Zuul 2019-06-17 23:45:43 +00:00 committed by Gerrit Code Review
commit a682e2f8c0
1 changed files with 1 additions and 1 deletions

View File

@ -3873,7 +3873,7 @@ def security_group_create(context, values):
security_group_ref = models.SecurityGroup()
# FIXME(devcamcar): Unless I do this, rules fails with lazy load exception
# once save() is called. This will get cleaned up in next orm pass.
security_group_ref.rules
security_group_ref.rules = []
security_group_ref.update(values)
try:
with get_context_manager(context).writer.savepoint.using(context):