Merge pull request #39988 from terminalmage/dockerng-timeout

Add comment explaining change from #39973
This commit is contained in:
Erik Johnson 2017-03-13 13:37:28 -05:00 committed by GitHub
commit e125c94ba5

View file

@ -775,6 +775,8 @@ def _get_client(timeout=None):
- docker.url: URL to the docker service
- docker.version: API version to use (default: "auto")
'''
# In some edge cases, the client instance is missing attributes. Don't use
# the cached client in those cases.
if 'docker.client' not in __context__ \
or not hasattr(__context__['docker.client'], 'timeout'):
client_kwargs = {}