From ba747463a7ba5825625124c1ea8aad5aca3af073 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi <gouthampravi@gmail.com> Date: Sun, 15 Jan 2017 14:19:40 -0500 Subject: [PATCH] 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 --- manila/api/v2/share_networks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manila/api/v2/share_networks.py b/manila/api/v2/share_networks.py index d859a74a44..db155b2a1b 100644 --- a/manila/api/v2/share_networks.py +++ b/manila/api/v2/share_networks.py @@ -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)