Codebase list python-castellan / bf50f8c
Use international logging message Change-Id: I09be95a4a2fee0d7448295d58df892bcc48141a6 Jiong Liu 7 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
165165 token=context.auth_token,
166166 project_id=context.tenant)
167167 else:
168 msg = "context must be of type KeystonePassword, KeystoneToken, "
169 "or RequestContext."
168 msg = u._("context must be of type KeystonePassword, "
169 "KeystoneToken, or RequestContext.")
170170 LOG.error(msg)
171171 raise exception.Forbidden(reason=msg)
172172
351351 :return: the URL of the requested secret
352352 """
353353 if not object_id:
354 msg = "Key ID is None"
354 msg = u._("Key ID is None")
355355 raise exception.KeyManagerError(reason=msg)
356356 base_url = self._base_url
357357 if base_url[-1] != '/':