Skip to content

Commit 3a0e2ba

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[stable-only] Add writer DB context to "add_provisioning_component"" into stable/yoga
2 parents de7892d + 9db7307 commit 3a0e2ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

neutron/db/provisioning_blocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def add_model_for_resource(resource, model):
4242

4343

4444
@db_api.retry_if_session_inactive()
45+
@db_api.CONTEXT_WRITER
4546
def add_provisioning_component(context, object_id, object_type, entity):
4647
"""Adds a provisioning block by an entity to a given object.
4748

0 commit comments

Comments
 (0)