Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion quantumclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,11 @@ def _cs_request(self, *args, **kwargs):
return resp, body

def do_request(self, url, method, **kwargs):

if not self.endpoint_url:
self.authenticate()

else:
self.auth_token=None
# Perform the request once. If we get a 401 back then it
# might be because the auth token expired, so try to
# re-authenticate and try again. If it still fails, bail.
Expand Down