Both v1 and v2 of the glance client return python generators in some
cases (rather than fully fleshed out lists) which thwarts our retry
mechanism. Convert generator results to a list, so that any potential
exceptions get raised earlier rather than later, allowing for retries.
Change-Id: Ibc84f1596d4eaabdef0a48f6cf4da2d1323843a8
Closes-Bug: #1557584
(cherry picked from commit ae6d868e2f13f90d9f97c982fdbbccdc6fb8b9c9)
Reviewed: https:/ /review. openstack. org/295319 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3771c37bac8 26a35cf17312ef1 36ba50d239f262
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 3771c37bac826a3 5cf17312ef136ba 50d239f262
Author: Diana Clarke <email address hidden>
Date: Tue Mar 15 16:17:28 2016 -0400
Fix retry mechanism for generator results
Both v1 and v2 of the glance client return python generators in some
cases (rather than fully fleshed out lists) which thwarts our retry
mechanism. Convert generator results to a list, so that any potential
exceptions get raised earlier rather than later, allowing for retries.
Change-Id: Ibc84f1596d4eaa bdef0a48f6cf4da 2d1323843a8 d9f97c982fdbbcc dc6fb8b9c9)
Closes-Bug: #1557584
(cherry picked from commit ae6d868e2f13f90