From 81efeaa7b7c86338802fec8b27a51e2fe1c86ecc Mon Sep 17 00:00:00 2001 From: Aaron Rosen Date: Tue, 22 Jul 2014 10:50:29 -0700 Subject: [PATCH] NSX: remove duplicate call to set_auth_cookie() Change-Id: Ie883f670aa18f1b8a2561e02b388f903f9cbd03b Closes-bug: 1347078 --- neutron/plugins/vmware/api_client/request.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/neutron/plugins/vmware/api_client/request.py b/neutron/plugins/vmware/api_client/request.py index aacd926f6..e832eeddf 100644 --- a/neutron/plugins/vmware/api_client/request.py +++ b/neutron/plugins/vmware/api_client/request.py @@ -150,12 +150,10 @@ class ApiRequest(object): # a request to authenticate, we should abort the # request since there is no point in retrying. 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) elif response.status == httplib.SERVICE_UNAVAILABLE: is_conn_service_unavail = True -- 2.45.2