commit | ff77917b4d967827a1a375c97214f06b030e519a | [log] [tgz] |
---|---|---|
author | Joe Topjian <joe@topjian.net> | Tue Feb 14 18:24:39 2017 -0700 |
committer | jrperritt <jrperritt@gmail.com> | Tue Feb 14 19:24:39 2017 -0600 |
tree | 79cf77219b6d4163e70a81b459888f7f52d5acda | |
parent | b06120d13e262ceaf890ef38ee30898813696af0 [diff] [blame] |
ImageService v2: Fix paging when next URL is blank (#254)
diff --git a/openstack/imageservice/v2/images/results.go b/openstack/imageservice/v2/images/results.go index ae674de..09996f4 100644 --- a/openstack/imageservice/v2/images/results.go +++ b/openstack/imageservice/v2/images/results.go
@@ -156,6 +156,11 @@ if err != nil { return "", err } + + if s.Next == "" { + return "", nil + } + return nextPageURL(r.URL.String(), s.Next), nil }