]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
NSX: remove duplicate call to set_auth_cookie()
authorAaron Rosen <aaronorosen@gmail.com>
Tue, 22 Jul 2014 17:50:29 +0000 (10:50 -0700)
committerAaron Rosen <aaronorosen@gmail.com>
Fri, 1 Aug 2014 22:39:04 +0000 (22:39 +0000)
Change-Id: Ie883f670aa18f1b8a2561e02b388f903f9cbd03b
Closes-bug: 1347078

neutron/plugins/vmware/api_client/request.py

index aacd926f6f81a78d21e801af2ef5c46176ee8979..e832eeddfa868d4ea571e46bdb396827015296b7 100644 (file)
@@ -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