Add close() method to DockerClient.

Signed-off-by: Matthieu Nottale <matthieu.nottale@docker.com>
This commit is contained in:
Matthieu Nottale 2018-03-14 14:14:20 +01:00
parent d291d8c9f7
commit b75799d33a
1 changed files with 4 additions and 0 deletions

View File

@ -186,6 +186,10 @@ class DockerClient(object):
return self.api.version(*args, **kwargs)
version.__doc__ = APIClient.version.__doc__
def close(self):
return self.api.close()
close.__doc__ = APIClient.close.__doc__
def __getattr__(self, name):
s = ["'DockerClient' object has no attribute '{}'".format(name)]
# If a user calls a method on APIClient, they