villebro commented on code in PR #32372:
URL: https://github.com/apache/superset/pull/32372#discussion_r2017585468
##########
superset/async_events/cache_backend.py:
##########
@@ -95,6 +95,11 @@ def from_config(cls, config: Dict[str, Any]) ->
"RedisCacheBackend":
"ssl_cert_reqs": config.get("CACHE_REDIS_SSL_CERT_REQS",
"required"),
"ssl_ca_certs": config.get("CACHE_REDIS_SSL_CA_CERTS", None),
}
+
+ # Handle username separately as it's optional for Redis authentication.
+ if configured_username := config.get("CACHE_REDIS_USER", ""):
Review Comment:
Nit:
```suggestion
if configured_username := config.get("CACHE_REDIS_USER"):
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]