Skip to content

Commit

Permalink
fix endpoint get
Browse files Browse the repository at this point in the history
  • Loading branch information
Laure-di committed Feb 29, 2024
1 parent 3638ff1 commit 5abb2bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/namespaces/redis/v1/custom_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package redis
import (
"context"
"errors"
"log"
"net/http"
"reflect"
"time"
Expand Down Expand Up @@ -159,8 +160,9 @@ func ACLAddListBuilder(c *core.Command) *core.Command {
}

func redisEndpointsClusterGetMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) {
type tmp []*redis.Endpoint
redisEndpointsClusterResponse := tmp(i.([]*redis.Endpoint))
type tmp redis.Endpoint
redisEndpointsClusterResponse := tmp(i.(redis.Endpoint))
log.Println("value of redisEndpointsClusterResponse: ", redisEndpointsClusterResponse)
opt.Fields = []*human.MarshalFieldOpt{
{
FieldName: "ID",
Expand Down

0 comments on commit 5abb2bc

Please sign in to comment.