From 2ea5234a4dee2c7fa866be175711a2e3b4b5139c Mon Sep 17 00:00:00 2001 From: chenaidong1 Date: Tue, 30 Jan 2018 15:41:26 +0800 Subject: [PATCH] Correct the environment template clone error message When cloning environment template with the same name, the current exception description is "Environment with specified name already exists", "Environment" in the exception description should be "Env template". Co-Authored-By: zhurong Change-Id: Iaf5868c173963eb737e27c2a3221f6b6a23fac84 --- murano/api/v1/templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/murano/api/v1/templates.py b/murano/api/v1/templates.py index 7a3768320..131ac40eb 100644 --- a/murano/api/v1/templates.py +++ b/murano/api/v1/templates.py @@ -249,7 +249,7 @@ class Controller(object): env_template_id, request.context.tenant, body['name'], is_public) except db_exc.DBDuplicateEntry: - msg = _('Environment with specified name already exists') + msg = _('Env template with specified name already exists') LOG.error(msg) raise exc.HTTPConflict(explanation=msg)