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