midokura/python-midonetclient — pull request #26 by tomohikokimura (2013-07-16 07:33:52+00:00)
Title: Correctly passes the query arg after re-login on 401.

Change-Id: I29d9402732071550925c14231239a71ef1e982da

Fixes #23

Fixes a bug where the query argument is lost after retrying authentication on login token expiration. Currently, when a login token expires, the authentication server such as Keystone returns 401 HTTPUnauthorized via Midonet API. The Python Midonet Client correctly handles the 401 and attemps re-authentication. However, after a successful re-authentication, it fails to pass on the original query parameters, which typically contain a tenant ID, etc. to the reissued REST request, thus the request resulting in a 400 Bad Request.