Fix a couple i18n issues in glance/common/auth.py.
Change-Id: I6944bb46fbd6784b7e9b84d05d453b56bf62d21c
This commit is contained in:
parent
ae6e288072
commit
d9ec683793
@ -183,7 +183,7 @@ class KeystoneStrategy(BaseStrategy):
|
||||
elif resp.status == 404:
|
||||
raise exception.AuthUrlNotFound(url=token_url)
|
||||
else:
|
||||
raise Exception(_('Unexpected response: %s' % resp.status))
|
||||
raise Exception(_('Unexpected response: %s') % resp.status)
|
||||
|
||||
def _v2_auth(self, token_url):
|
||||
|
||||
@ -268,7 +268,7 @@ def get_endpoint(service_catalog, service_type='image', endpoint_region=None,
|
||||
try:
|
||||
s_type = service['type']
|
||||
except KeyError:
|
||||
msg = _('Encountered service with no "type": %s' % s_type)
|
||||
msg = _('Encountered service with no "type": %s') % s_type
|
||||
LOG.warn(msg)
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user