From 37e4e256bad30379abda7ed85a11ca71ae8347d2 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Sun, 28 Aug 2016 16:03:00 -0500 Subject: [PATCH] Change HTTP method of _action from PUT to POST Both Nova and Docker uses POST in similiar cases Change-Id: Ic6204213dad5d860f5d7ceaa2b5a27e83f197a85 --- zunclient/v1/containers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zunclient/v1/containers.py b/zunclient/v1/containers.py index be1ef2b8..a87baa71 100644 --- a/zunclient/v1/containers.py +++ b/zunclient/v1/containers.py @@ -103,7 +103,7 @@ class ContainerManager(base.Manager): def delete(self, id): return self._delete(self._path(id)) - def _action(self, id, action, method='PUT', qparams=None, **kwargs): + def _action(self, id, action, method='POST', qparams=None, **kwargs): if qparams: action = "%s?%s" % (action, parse.urlencode(qparams))