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 <aaronzhu1121@gmail.com>
Change-Id: Iaf5868c173963eb737e27c2a3221f6b6a23fac84
This commit is contained in:
chenaidong1 2018-01-30 15:41:26 +08:00 committed by zhurong
parent d7a54d69f9
commit 2ea5234a4d
1 changed files with 1 additions and 1 deletions

View File

@ -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)