jedcunningham commented on code in PR #51786:
URL: https://github.com/apache/airflow/pull/51786#discussion_r2150788219
##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -190,10 +193,11 @@ def _get_variable(key: str, deserialize_json: bool) ->
Any:
type(secrets_backend).__name__,
)
- log.debug(
- "Variable not found in any of the configured Secrets Backends. Trying
to retrieve from API server",
- key=key,
- )
+ if len(backends):
Review Comment:
```suggestion
if backends:
```
##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -137,10 +138,11 @@ def _get_connection(conn_id: str) -> Connection:
type(secrets_backend).__name__,
)
- log.debug(
- "Connection not found in any of the configured Secrets Backends.
Trying to retrieve from API server",
- conn_id=conn_id,
- )
+ if len(backends):
Review Comment:
```suggestion
if backends:
```
Truthy check is fine.
--
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]