After a token expires, the Datera driver would try to login, and pass
along the expired token. This would fail because the receiving server
will authorize anytime it's given an auth token, even for endpoints that
don't require it. This change unsets the auth token when logging in, so
it's not passed a long.
Closes-Bug: #
1430978
Change-Id: Id445718e3e73b676e3af8005b8fdd1a028ef2b0e
'password': self.password
}
+ # Unset token now, otherwise potential expired token will be sent
+ # along to be used for authorization when trying to login.
+ self.auth_token = None
+
try:
LOG.debug('Getting Datera auth token.')
results = self._issue_api_request('login', 'post', body=data,