Change HTTP method of _action from PUT to POST

Both Nova and Docker uses POST in similiar cases

Change-Id: Ic6204213dad5d860f5d7ceaa2b5a27e83f197a85
This commit is contained in:
Hongbin Lu 2016-08-28 16:03:00 -05:00
parent aa16ffb35a
commit 37e4e256ba

View File

@ -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))