Use international logging message
Change-Id: I09be95a4a2fee0d7448295d58df892bcc48141a6
Jiong Liu
7 years ago
165 | 165 | token=context.auth_token, |
166 | 166 | project_id=context.tenant) |
167 | 167 | 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.") | |
170 | 170 | LOG.error(msg) |
171 | 171 | raise exception.Forbidden(reason=msg) |
172 | 172 | |
351 | 351 | :return: the URL of the requested secret |
352 | 352 | """ |
353 | 353 | if not object_id: |
354 | msg = "Key ID is None" | |
354 | msg = u._("Key ID is None") | |
355 | 355 | raise exception.KeyManagerError(reason=msg) |
356 | 356 | base_url = self._base_url |
357 | 357 | if base_url[-1] != '/': |