diff --git a/magnumclient/api/containers.py b/magnumclient/api/containers.py index e675d528..5ea926fa 100644 --- a/magnumclient/api/containers.py +++ b/magnumclient/api/containers.py @@ -102,9 +102,11 @@ class ContainerManager(base.Manager): return self._update(self._path(id), patch) def _action(self, id, action, **kwargs): + kwargs.setdefault('headers', {}) + kwargs['headers'].setdefault('Content-Length', '0') resp, body = self.api.json_request('PUT', self._path(id) + action, - kwargs) + **kwargs) return resp def start(self, id):