commit | 64f594dcecbef6e351c38fbaf1459d1926029367 | [log] [tgz] |
---|---|---|
author | Jon Perritt <jrperritt@gmail.com> | Sun Feb 08 21:24:33 2015 -0700 |
committer | Jon Perritt <jrperritt@gmail.com> | Sun Feb 08 21:24:33 2015 -0700 |
tree | 8def9cab2aeb799dd85971c826df3e73997e4c56 | |
parent | 4107878095eec0d9069f5bcb1ddda9d7be6fd101 [diff] |
fix List op for MarkerPageBase
diff --git a/openstack/orchestration/v1/stackresources/fixtures.go b/openstack/orchestration/v1/stackresources/fixtures.go index 003abf3..0b930f4 100644 --- a/openstack/orchestration/v1/stackresources/fixtures.go +++ b/openstack/orchestration/v1/stackresources/fixtures.go
@@ -140,6 +140,8 @@ switch marker { case "": fmt.Fprintf(w, output) + case "49181cd6-169a-4130-9455-31185bbfc5bf": + fmt.Fprintf(w, `{"resources":[]}`) default: t.Fatalf("Unexpected marker: [%s]", marker) }
diff --git a/openstack/orchestration/v1/stackresources/requests.go b/openstack/orchestration/v1/stackresources/requests.go index e4cf7cb..5679fb2 100644 --- a/openstack/orchestration/v1/stackresources/requests.go +++ b/openstack/orchestration/v1/stackresources/requests.go
@@ -60,7 +60,9 @@ } createPageFn := func(r pagination.PageResult) pagination.Page { - return ResourcePage{pagination.MarkerPageBase{PageResult: r}} + p := ResourcePage{pagination.MarkerPageBase{PageResult: r}} + p.MarkerPageBase.Owner = p + return p } return pagination.NewPager(client, url, createPageFn)