Skip to content

Commit

Permalink
Fix wrong label for listdomainchildren (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjumani committed May 18, 2022
1 parent c2b1969 commit f8fbd00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cloudstack/DomainService.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit f8fbd00

Please sign in to comment.