1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 13:18:20 +00:00

Updated norman go module to v0.0.0-20200211155126-fc45a55d4dfd

This commit is contained in:
rawmind0
2020-02-11 17:15:43 +01:00
parent ff90439c1b
commit a5e9df39fb
4 changed files with 8 additions and 5 deletions

View File

@@ -106,13 +106,14 @@ func (c *{{.schema.CodeName}}Client) ListAll(opts *types.ListOpts) (*{{.schema.C
return resp, err
}
data := resp.Data
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
data = append(data, resp.Data...)
for next, err := resp.Next(); next != nil && err == nil; next, err = next.Next() {
data = append(data, next.Data...)
resp = next
resp.Data = data
}
if err != nil {
return resp, err
}
resp.Data = data
return resp, err
}