diff --git a/quantumclient/client.py b/quantumclient/client.py index 7a61c68d7..1a058f9f9 100644 --- a/quantumclient/client.py +++ b/quantumclient/client.py @@ -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.