mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
automember-rebuild: add a notice about high CPU usage
The automember-rebuild task may require high CPU usage if many users/hosts/groups are processed. Add a note in the ipa automember-rebuild CLI output and in the WebUI confirmation message. Fixes: https://pagure.io/freeipa/issue/9320 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Francisco Trivino <ftrivino@redhat.com>
This commit is contained in:
parent
2996cc8eae
commit
5154f8e639
@ -7,7 +7,7 @@
|
||||
"actions": {
|
||||
"apply": "Apply",
|
||||
"automember_rebuild": "Rebuild auto membership",
|
||||
"automember_rebuild_confirm": "Are you sure you want to rebuild auto membership?",
|
||||
"automember_rebuild_confirm": "Are you sure you want to rebuild auto membership? In case of a high number of users, hosts or groups, the operation may require high CPU usage.",
|
||||
"automember_rebuild_success": "Automember rebuild membership task completed",
|
||||
"confirm": "Are you sure you want to proceed with the action?",
|
||||
"delete_confirm": "Are you sure you want to delete ${object}?",
|
||||
|
@ -34,3 +34,11 @@ class automember_add_condition(MethodOverride):
|
||||
flags=['suppress_empty'],
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@register(override=True, no_fail=True)
|
||||
class automember_rebuild(MethodOverride):
|
||||
def interactive_prompt_callback(self, kw):
|
||||
msg = _('IMPORTANT: In case of a high number of users, hosts or '
|
||||
'groups, the operation may require high CPU usage.')
|
||||
self.Backend.textui.print_plain(msg)
|
||||
|
@ -160,7 +160,11 @@ class i18n_messages(Command):
|
||||
"actions": {
|
||||
"apply": _("Apply"),
|
||||
"automember_rebuild": _("Rebuild auto membership"),
|
||||
"automember_rebuild_confirm": _("Are you sure you want to rebuild auto membership?"),
|
||||
"automember_rebuild_confirm": _(
|
||||
"Are you sure you want to rebuild auto membership? In case of "
|
||||
"a high number of users, hosts or groups, the operation "
|
||||
"may require high CPU usage."
|
||||
),
|
||||
"automember_rebuild_success": _("Automember rebuild membership task completed"),
|
||||
"confirm": _("Are you sure you want to proceed with the action?"),
|
||||
"delete_confirm": _("Are you sure you want to delete ${object}?"),
|
||||
|
Loading…
Reference in New Issue
Block a user