Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindAllStats: panic fails on Hanode #35

Open
ak1ra24 opened this issue Aug 27, 2022 · 0 comments · May be fixed by #36
Open

FindAllStats: panic fails on Hanode #35

ak1ra24 opened this issue Aug 27, 2022 · 0 comments · May be fixed by #36

Comments

@ak1ra24
Copy link

ak1ra24 commented Aug 27, 2022

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)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant