Change refresh to refresh_token to match signature
get_token() method has argument 'refresh_token' in its signature. Update get_token() method call when passing 'refresh_token' argument. Change-Id: Idbf64f7f1f0db1c9bfbd079f426cfa3f79bd2edf
This commit is contained in:
parent
d524357af2
commit
428bf4a3f4
@ -557,7 +557,8 @@ class ClusteredAPI(object):
|
||||
{'ep': endpoint})
|
||||
if bool(self.nsxlib_config.token_provider):
|
||||
# get new jwt token for authentication
|
||||
self.nsxlib_config.token_provider.get_token(refresh=True)
|
||||
self.nsxlib_config.token_provider.get_token(
|
||||
refresh_token=True)
|
||||
# refresh endpoint with new headers that have updated token
|
||||
endpoint.regenerate_pool()
|
||||
return
|
||||
@ -659,7 +660,8 @@ class ClusteredAPI(object):
|
||||
if self.nsxlib_config.exception_config.should_regenerate(exc):
|
||||
if bool(self.nsxlib_config.token_provider):
|
||||
# get new jwt token for authentication
|
||||
self.nsxlib_config.token_provider.get_token(refresh=True)
|
||||
self.nsxlib_config.token_provider.get_token(
|
||||
refresh_token=True)
|
||||
# refresh endpoint so that it gets new header with updated token
|
||||
endpoint.regenerate_pool()
|
||||
raise exc
|
||||
|
Loading…
x
Reference in New Issue
Block a user