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:
parent
aa16ffb35a
commit
37e4e256ba
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user