def _move(self, opts):
    if (opts.from_group is None):
        _exit_if_errors(['--from-group is required with --move-servers'])
    if (opts.to_group is None):
        _exit_if_errors(['--to-group is required with --move-servers'])
    servers = apply_default_port(opts.move_servers)
    (_, errors) = self.rest.move_servers_between_groups(servers, opts.from_group, opts.to_group)
    _exit_if_errors(errors)
    _success('Servers moved between groups')
def _move(self, opts):
    if (opts.from_group is None):
        _exit_if_errors(['--from-group is required with --move-servers'])
    if (opts.to_group is None):
        _exit_if_errors(['--to-group is required with --move-servers'])
    servers = apply_default_port(opts.move_servers)
    (_, errors) = self.rest.move_servers_between_groups(servers, opts.from_group, opts.to_group)
    _exit_if_errors(errors)
    _success('Servers moved between groups')