Skip to content

Commit 1008e4e

Browse files
Thomas Hervekarelyatin
authored andcommitted
Don't override session during auth
Looks like we try to override the session even if we don't auth, let's not do that. Change-Id: I520c3d020e3415c5737af7912bddf34931190d65 Closes-Bug: #1748751 (cherry picked from commit f5816f1)
1 parent 5b49b9f commit 1008e4e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mistralclient/api/v2/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ def __init__(self, auth_type='keystone', **kwargs):
5959
else:
6060
auth_response = {}
6161

62-
# If the session was None and we're using keystone auth, it will be
63-
# created by the auth_handler.
64-
session = auth_response.pop('session', None)
62+
if session is None:
63+
# If the session was None and we're using keystone auth, it will be
64+
# created by the auth_handler.
65+
session = auth_response.pop('session', None)
6566

6667
req.update(auth_response)
6768

0 commit comments

Comments
 (0)