Skip to content

Commit f8fbd00

Browse files
authored
Fix wrong label for listdomainchildren (#35)
1 parent c2b1969 commit f8fbd00

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cloudstack/DomainService.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ func (s *DomainService) ListDomainChildren(p *ListDomainChildrenParams) (*ListDo
576576

577577
type ListDomainChildrenResponse struct {
578578
Count int `json:"count"`
579-
DomainChildren []*DomainChildren `json:"domainchildren"`
579+
DomainChildren []*DomainChildren `json:"domain"`
580580
}
581581

582582
type DomainChildren struct {

generate/generate.go

+3
Original file line numberDiff line numberDiff line change
@@ -1749,6 +1749,9 @@ func (s *service) generateResponseType(a *API) {
17491749
case "registerTemplate":
17501750
pn(" Count int `json:\"count\"`")
17511751
pn(" %s []*%s `json:\"%s\"`", ln, parseSingular(ln), "template")
1752+
case "listDomainChildren":
1753+
pn(" Count int `json:\"count\"`")
1754+
pn(" %s []*%s `json:\"%s\"`", ln, parseSingular(ln), "domain")
17521755
default:
17531756
pn(" Count int `json:\"count\"`")
17541757
pn(" %s []*%s `json:\"%s\"`", ln, parseSingular(ln), strings.ToLower(parseSingular(ln)))

0 commit comments

Comments
 (0)