Don't raise not found in delete raw template
Change-Id: I0e1a97a0c815530e7dd8cefb01e1db83d51957a9 Task: 37155
This commit is contained in:
parent
89ab96176f
commit
d38948a221
|
@ -142,7 +142,11 @@ def raw_template_update(context, template_id, values):
|
|||
|
||||
|
||||
def raw_template_delete(context, template_id):
|
||||
raw_template = raw_template_get(context, template_id)
|
||||
try:
|
||||
raw_template = raw_template_get(context, template_id)
|
||||
except exception.NotFound:
|
||||
# Ignore not found
|
||||
return
|
||||
raw_tmpl_files_id = raw_template.files_id
|
||||
session = context.session
|
||||
with session.begin(subtransactions=True):
|
||||
|
|
Loading…
Reference in New Issue