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.
Reviewed: https:/ /review. openstack. org/293127 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ae6d868e2f1 3f90d9f97c982fd bbccdc6fb8b9c9
Committed: https:/
Submitter: Jenkins
Branch: master
commit ae6d868e2f13f90 d9f97c982fdbbcc dc6fb8b9c9
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
Closes-Bug: #1557584