Use cached auth_ref instead of gettin a new one each time
The commit fixes an issue in renewing connections to Swift in case
if a given token is about to expire soon. get_auth_ref() returned
a new auth_ref each time it was called so the will_expire_soon()
call was useless since it always returned False. Now the cached
auth_ref property is used instead.
Closes-Bug:#1733502
Reviewed: https:/ /review. openstack. org/521753 /git.openstack. org/cgit/ openstack/ glance_ store/commit/ ?id=9ace679c1da e5e8f68946a46ce 1dfb2926539b52
Committed: https:/
Submitter: Zuul
Branch: master
commit 9ace679c1dae5e8 f68946a46ce1dfb 2926539b52
Author: kairat_kushaev <email address hidden>
Date: Tue Nov 21 12:14:27 2017 +0400
Use cached auth_ref instead of gettin a new one each time
The commit fixes an issue in renewing connections to Swift in case Bug:#1733502
if a given token is about to expire soon. get_auth_ref() returned
a new auth_ref each time it was called so the will_expire_soon()
call was useless since it always returned False. Now the cached
auth_ref property is used instead.
Closes-
Change-Id: I6cb53aec6798f9 65cf2a120d4f676 a43bca5046a