mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix formatted translations of error messages in serverroles plugin
For now formatting is applied for bare messages before translating. This breaks python-brace-format and message becomes untranslatable at all. Fixes: https://pagure.io/freeipa/issue/7586 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
committed by
Christian Heimes
parent
6f245db8ea
commit
1dfdbfd8bf
@@ -79,7 +79,7 @@ class serverroles(Backend):
|
|||||||
return self.role_names[key]
|
return self.role_names[key]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise errors.NotFound(
|
raise errors.NotFound(
|
||||||
reason=_("{role}: role not found".format(role=role_name)))
|
reason=_("{role}: role not found").format(role=role_name))
|
||||||
|
|
||||||
def _get_enabled_masters(self, role_name):
|
def _get_enabled_masters(self, role_name):
|
||||||
result = {}
|
result = {}
|
||||||
@@ -164,4 +164,4 @@ class serverroles(Backend):
|
|||||||
self.attributes[attr].set(self.api, value)
|
self.attributes[attr].set(self.api, value)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise errors.NotFound(
|
raise errors.NotFound(
|
||||||
reason=_('{attr}: no such attribute'.format(attr=attr)))
|
reason=_('{attr}: no such attribute').format(attr=attr))
|
||||||
|
Reference in New Issue
Block a user