Merge "[stable-only] Add writer DB context to "add_provisioning_component"" into stable/train

This commit is contained in:
Zuul 2022-10-04 16:40:15 +00:00 committed by Gerrit Code Review
commit 23df8f3575

View File

@ -41,6 +41,7 @@ def add_model_for_resource(resource, model):
@db_api.retry_if_session_inactive()
@db_api.CONTEXT_WRITER
def add_provisioning_component(context, object_id, object_type, entity):
"""Adds a provisioning block by an entity to a given object.