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:
parent
d7a54d69f9
commit
2ea5234a4d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue