Skip to content

Commit

Permalink
Merge pull request #39988 from terminalmage/dockerng-timeout
Browse files Browse the repository at this point in the history
Add comment explaining change from #39973
  • Loading branch information
Erik Johnson committed Mar 13, 2017
2 parents cd0336e + bd2519e commit e125c94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions salt/modules/dockerng.py
Expand Up @@ -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 = {}
Expand Down

0 comments on commit e125c94

Please sign in to comment.