def _rename(self, opts):
    if (opts.name is None):
        _exit_if_errors(['--group-name is required with --rename option'])
    (_, errors) = self.rest.rename_server_group(opts.name, opts.rename)
    _exit_if_errors(errors)
    _success('Server group renamed')
def _rename(self, opts):
    if (opts.name is None):
        _exit_if_errors(['--group-name is required with --rename option'])
    (_, errors) = self.rest.rename_server_group(opts.name, opts.rename)
    _exit_if_errors(errors)
    _success('Server group renamed')