Merge pull request #2272 from hannseman/update-service-response

Return API response on service update
This commit is contained in:
Joffrey F 2019-03-16 22:34:05 -07:00 committed by GitHub
commit 1047376f0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -387,7 +387,7 @@ class ServiceApiMixin(object):
current specification of the service. Default: ``False``
Returns:
``True`` if successful.
A dictionary containing a ``Warnings`` key.
Raises:
:py:class:`docker.errors.APIError`
@ -471,5 +471,4 @@ class ServiceApiMixin(object):
resp = self._post_json(
url, data=data, params={'version': version}, headers=headers
)
self._raise_for_status(resp)
return True
return self._result(resp, json=True)