Kaydet (Commit) b75799d3 authored tarafından Matthieu Nottale's avatar Matthieu Nottale

Add close() method to DockerClient.

Signed-off-by: 's avatarMatthieu Nottale <matthieu.nottale@docker.com>
üst d291d8c9
...@@ -186,6 +186,10 @@ class DockerClient(object): ...@@ -186,6 +186,10 @@ class DockerClient(object):
return self.api.version(*args, **kwargs) return self.api.version(*args, **kwargs)
version.__doc__ = APIClient.version.__doc__ version.__doc__ = APIClient.version.__doc__
def close(self):
return self.api.close()
close.__doc__ = APIClient.close.__doc__
def __getattr__(self, name): def __getattr__(self, name):
s = ["'DockerClient' object has no attribute '{}'".format(name)] s = ["'DockerClient' object has no attribute '{}'".format(name)]
# If a user calls a method on APIClient, they # If a user calls a method on APIClient, they
......
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