Skip to content

FindAllStats: panic fails on Hanode #35

@ak1ra24

Description

@ak1ra24

I get the following error when I try to get the Hanode stat using the FindAllStats function.

panic: interface conversion: interface {} is map[string]interface {}, not []interface {}

The reproduced code is as follows.

package main

import (
	"fmt"
	"os"

	"github.com/citrix/adc-nitro-go/service"
)

func main() {
	client, err := service.NewNitroClientFromEnv()
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
	haStats, err := client.FindAllStats(service.Hanode.Type())
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
	fmt.Println(haStats)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions