rectify 'a invalid version' to 'an invalid version'

Change-Id: I854134736ce80cb27701afff508a6f7342a61d64
This commit is contained in:
wangdequn 2018-06-14 10:18:47 +08:00
parent 9ca3160ff7
commit 2a2ce04b4f

View File

@ -163,7 +163,7 @@ class ListEndpointsMiddleware(object):
version = self._parse_version(raw_version)
except ValueError:
if raw_version.startswith('v') and '_' not in raw_version:
# looks more like a invalid version than an account
# looks more like an invalid version than an account
raise
# probably no version specified, but if the client really
# said /endpoints/v_3/account they'll probably be sorta