diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index ea4b7d6884c2..3fd0dcc792af 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -3861,7 +3861,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):