diff --git a/pkg/registrar/registrar.go b/pkg/registrar/registrar.go index 1e75ee995b..803b0d3c9b 100644 --- a/pkg/registrar/registrar.go +++ b/pkg/registrar/registrar.go @@ -98,7 +98,12 @@ func (r *Registrar) GetNames(key string) ([]string, error) { if !exists { return nil, ErrNoSuchKey } - return names, nil + + ls := make([]string, 0, len(names)) + for _, n := range names { + ls = append(ls, n) + } + return ls, nil } // Get returns the key that the passed in name is reserved to