mirror of https://github.com/docker/docker-py.git
Add close() method to DockerClient.
Signed-off-by: Matthieu Nottale <matthieu.nottale@docker.com>
This commit is contained in:
parent
d291d8c9f7
commit
b75799d33a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue