Merge pull request #1954 from mnottale/dockerclient-close

Add close() method to DockerClient.
This commit is contained in:
Joffrey F 2018-03-14 10:57:02 -07:00 committed by GitHub
commit 8701c9634e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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