Kaydet (Commit) 548b1e7f authored tarafından Joffrey F's avatar Joffrey F

Merge pull request #156 from dmiyakawa/master

Allow copy() to accept dictionary like diff()
......@@ -403,6 +403,8 @@ class Client(requests.Session):
return res
def copy(self, container, resource):
if isinstance(container, dict):
container = container.get('Id')
res = self._post_json(
self._url("/containers/{0}/copy".format(container)),
data={"Resource": resource},
......
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