Fix error message in Share Networks API

Remove back-ticks in the user facing string.
Add translation marker.
Capitalize release name.

TrivialFix

Change-Id: Ifdeb66ce95bf98d3378ac95c8e0bc25140166885
This commit is contained in:
Goutham Pacha Ravi 2017-01-15 14:19:40 -05:00
parent a3237dd817
commit ba747463a7

@ -201,8 +201,8 @@ class ShareNetworkController(wsgi.Controller):
update_values = body[RESOURCE_NAME]
if 'nova_net_id' in update_values:
raise exc.HTTPBadRequest("``nova`` networking is not supported "
"starting in ocata.")
msg = _("nova networking is not supported starting in Ocata.")
raise exc.HTTPBadRequest(explanation=msg)
if share_network['share_servers']:
for value in update_values:
@ -236,8 +236,8 @@ class ShareNetworkController(wsgi.Controller):
values['user_id'] = context.user_id
if 'nova_net_id' in values:
raise exc.HTTPBadRequest("``nova`` networking is not supported "
"starting in ocata.")
msg = _("nova networking is not supported starting in Ocata.")
raise exc.HTTPBadRequest(explanation=msg)
try:
reservations = QUOTAS.reserve(context, share_networks=1)