mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add comment explaining change from #39973
See https://github.com/saltstack/salt/pull/39973#issuecomment-286142419
This commit is contained in:
parent
cd0336e868
commit
bd2519ed1b
1 changed files with 2 additions and 0 deletions
|
@ -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 = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue