Change in ovirt-engine-sdk[sdk_4.1]: Automatically replace bad tokens

Code Review gerrit at ovirt.org
Thu May 4 18:16:47 UTC 2017


>From Ondra Machacek <omachace at redhat.com>:

Ondra Machacek has submitted this change and it was merged.

Change subject: Automatically replace bad tokens
......................................................................


Automatically replace bad tokens

Currently when the token used by the SDK is no longer valid, because it
is expired or for any other reason, the following requests just fail.
The only way to recover is to close the connection and open a new one.
That isn't convenient for long running applications. To improve that
this patch modifies the SDK so that it automatically replaces bad
tokens, requesting new ones from the SSO service.

Change-Id: I59e0dfef5a2b38b630a9c95ed19fea005acdf826
Bug-Url: https://bugzilla.redhat.com/1434830
Signed-off-by: Ondra Machacek <omachace at redhat.com>
(cherry picked from commit 76694c897ca2123f5b6a972e089ce8c0cb7c951e)
---
M sdk/lib/ovirtsdk4/__init__.py
1 file changed, 17 insertions(+), 4 deletions(-)

Approvals:
  Ondra Machacek: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/76463
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I59e0dfef5a2b38b630a9c95ed19fea005acdf826
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: sdk_4.1
Gerrit-Owner: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>


More information about the Engine-commits mailing list