Merge "Bug fix: showing a deleted template."
This commit is contained in:
commit
5f9d39b2ff
@ -136,7 +136,7 @@ class TemplateController(RootRestController):
|
||||
def _show_template(uuid):
|
||||
try:
|
||||
templates = pecan.request.storage.templates.query(uuid=uuid)
|
||||
if not templates:
|
||||
if not templates or templates[0].status == TStatus.DELETED:
|
||||
raise VitrageError("Template %s not found", uuid)
|
||||
return templates[0].file_content
|
||||
except Exception:
|
||||
|
Loading…
Reference in New Issue
Block a user