You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/11 21:41:50 UTC

[GitHub] [airflow] ashb commented on a change in pull request #13022: Fix #12480 Add support of YAML serialisation/deserialisation in Variables

ashb commented on a change in pull request #13022:
URL: https://github.com/apache/airflow/pull/13022#discussion_r541323083



##########
File path: airflow/models/variable.py
##########
@@ -129,22 +142,37 @@ def get(
         else:
             if deserialize_json:
                 return json.loads(var_val)
+            elif deserialize_yaml:
+                return yaml.load(var_val)

Review comment:
       ```suggestion
                   return yaml.safe_load(var_val)
   ```




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org