2016-06-08 11:25:55 -05:00
|
|
|
#
|
|
|
|
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
|
|
|
#
|
|
|
|
|
|
|
|
from ipaclient.frontend import MethodOverride
|
2016-08-23 07:04:51 -05:00
|
|
|
from ipalib import _, errors
|
2016-06-08 11:25:55 -05:00
|
|
|
from ipalib.plugable import Registry
|
|
|
|
|
|
|
|
register = Registry()
|
|
|
|
|
|
|
|
|
2016-06-27 02:33:29 -05:00
|
|
|
@register(override=True, no_fail=True)
|
2016-06-08 11:25:55 -05:00
|
|
|
class server_del(MethodOverride):
|
|
|
|
def interactive_prompt_callback(self, kw):
|
2016-08-23 07:04:51 -05:00
|
|
|
server_list = kw.get('cn')
|
|
|
|
if not server_list:
|
|
|
|
raise errors.RequirementError(name='cn')
|
|
|
|
|
2016-06-08 11:25:55 -05:00
|
|
|
self.api.Backend.textui.print_plain(
|
|
|
|
_("Removing %(servers)s from replication topology, "
|
2016-08-23 07:04:51 -05:00
|
|
|
"please wait...") % {'servers': ', '.join(server_list)})
|