def _sconnect(host=None, port=None, password=None):
 if (host is None):
  host = __salt__['config.option']('redis_sentinel.host', 'localhost')
 if (port is None):
  port = __salt__['config.option']('redis_sentinel.port', 26379)
 if (password is None):
  password = __salt__['config.option']('redis_sentinel.password')
 return redis.StrictRedis(host, port, password=password)

def _sconnect ( host = None , port = None , password = None ) : if ( host is None ) : host = __salt__ [ 'config.option' ] ( 'redis_sentinel.host' , 'localhost' ) if ( port is None ) : port = __salt__ [ 'config.option' ] ( 'redis_sentinel.port' , 26379 ) if ( password is None ) : password = __salt__ [ 'config.option' ] ( 'redis_sentinel.password' ) return redis . StrictRedis ( host , port , password = password )
returns an instance of the redis client .