Fix wrong label for listdomainchildren (#35)
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 @@
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 @@
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)))