Merge "Fixing an issue with json data caused by a code update"

This commit is contained in:
Jenkins 2017-08-21 02:58:21 +00:00 committed by Gerrit Code Review
commit e5f4d56748
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ class SessionClient(adapter.LegacyJsonAdapter):
kwargs.setdefault('user_agent', USER_AGENT)
if 'data' in kwargs:
kwargs['data'] = jsonutils.dumps(kwargs['data'])
kwargs['json'] = kwargs.pop('data')
resp, body = super(SessionClient, self).request(
url, method,