amoghrajesh commented on code in PR #50880:
URL: https://github.com/apache/airflow/pull/50880#discussion_r2100083548


##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -176,6 +176,10 @@ def _get_variable(key: str, deserialize_json: bool) -> Any:
         try:
             var_val = secrets_backend.get_variable(key=key)  # type: 
ignore[assignment]
             if var_val is not None:
+                if deserialize_json:
+                    import json
+
+                    var_val = json.loads(var_val)

Review Comment:
   Good call. Let me just send it in a follow up.



-- 
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]

Reply via email to