Merge "NSX: remove duplicate call to set_auth_cookie()"
This commit is contained in:
commit
98e65ca5f3
|
@ -150,12 +150,10 @@ class ApiRequest(object):
|
||||||
# a request to authenticate, we should abort the
|
# a request to authenticate, we should abort the
|
||||||
# request since there is no point in retrying.
|
# request since there is no point in retrying.
|
||||||
self._abort = True
|
self._abort = True
|
||||||
else:
|
|
||||||
# If request is unauthorized, clear the session cookie
|
|
||||||
# for the current provider so that subsequent requests
|
|
||||||
# to the same provider triggers re-authentication.
|
|
||||||
self._api_client.set_auth_cookie(conn, None)
|
|
||||||
|
|
||||||
|
# If request is unauthorized, clear the session cookie
|
||||||
|
# for the current provider so that subsequent requests
|
||||||
|
# to the same provider triggers re-authentication.
|
||||||
self._api_client.set_auth_cookie(conn, None)
|
self._api_client.set_auth_cookie(conn, None)
|
||||||
elif response.status == httplib.SERVICE_UNAVAILABLE:
|
elif response.status == httplib.SERVICE_UNAVAILABLE:
|
||||||
is_conn_service_unavail = True
|
is_conn_service_unavail = True
|
||||||
|
|
Loading…
Reference in New Issue