From f8fbd00bacff1d0f0713fcaa68df14274f3f6fb5 Mon Sep 17 00:00:00 2001 From: David Jumani Date: Wed, 18 May 2022 12:43:18 +0530 Subject: [PATCH] Fix wrong label for listdomainchildren (#35) --- cloudstack/DomainService.go | 2 +- generate/generate.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cloudstack/DomainService.go b/cloudstack/DomainService.go index 24a4342..45d17b6 100644 --- a/cloudstack/DomainService.go +++ b/cloudstack/DomainService.go @@ -576,7 +576,7 @@ func (s *DomainService) ListDomainChildren(p *ListDomainChildrenParams) (*ListDo type ListDomainChildrenResponse struct { Count int `json:"count"` - DomainChildren []*DomainChildren `json:"domainchildren"` + DomainChildren []*DomainChildren `json:"domain"` } type DomainChildren struct { diff --git a/generate/generate.go b/generate/generate.go index bdb95a3..a41fe86 100644 --- a/generate/generate.go +++ b/generate/generate.go @@ -1749,6 +1749,9 @@ func (s *service) generateResponseType(a *API) { case "registerTemplate": pn(" Count int `json:\"count\"`") pn(" %s []*%s `json:\"%s\"`", ln, parseSingular(ln), "template") + case "listDomainChildren": + pn(" Count int `json:\"count\"`") + pn(" %s []*%s `json:\"%s\"`", ln, parseSingular(ln), "domain") default: pn(" Count int `json:\"count\"`") pn(" %s []*%s `json:\"%s\"`", ln, parseSingular(ln), strings.ToLower(parseSingular(ln)))