Kaydet (Commit) 8d1e9670 authored tarafından Hannes Ljungberg's avatar Hannes Ljungberg

Return API response on service update

Signed-off-by: 's avatarHannes Ljungberg <hannes@5monkeys.se>
üst 24ace2da
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment