Add comment explaining change from #39973

See https://github.com/saltstack/salt/pull/39973#issuecomment-286142419
This commit is contained in:
Erik Johnson 2017-03-13 10:51:29 -05:00
parent cd0336e868
commit bd2519ed1b

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 = {}