def _docker_client(wrapped):
 @functools.wraps(wrapped)
 def wrapper(*args, **kwargs):
  '\n        Ensure that the client is present\n        '
  client_timeout = __context__.get('docker.timeout', CLIENT_TIMEOUT)
  _get_client(timeout=client_timeout)
  return wrapped(*args, **salt.utils.clean_kwargs(**kwargs))
 return wrapper

def _docker_client ( wrapped ) : @ functools . wraps ( wrapped ) def wrapper ( * args , ** kwargs ) : client_timeout = __context__ . get ( 'docker.timeout' , CLIENT_TIMEOUT ) _get_client ( timeout = client_timeout ) return wrapped ( * args , ** salt . utils . clean_kwargs ( ** kwargs ) ) return wrapper
decorator to run a function that requires the use of a docker .