You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2021/07/05 13:10:25 UTC

[airflow] branch v2-1-test updated: Fix "Invalid JSON configuration, must be a dict" (#16648)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch v2-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v2-1-test by this push:
     new 4157346  Fix "Invalid JSON configuration, must be a dict" (#16648)
4157346 is described below

commit 415734667e6ad9f3bc52f525bb1d2dbe0065c852
Author: muhua <mi...@live.com>
AuthorDate: Sun Jun 27 14:16:55 2021 +0800

    Fix "Invalid JSON configuration, must be a dict" (#16648)
    
    Wrong variable name used
    
    (cherry picked from commit c975d4cb2f360a56fb8d54cd44b047e57d67efeb)
---
 airflow/www/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/www/views.py b/airflow/www/views.py
index 63f232a..fdfea42 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1523,7 +1523,7 @@ class Airflow(AirflowBaseView):  # noqa: D101  pylint: disable=too-many-public-m
         if request_conf:
             try:
                 run_conf = json.loads(request_conf)
-                if not isinstance(conf, dict):
+                if not isinstance(run_conf, dict):
                     flash("Invalid JSON configuration, must be a dict", "error")
                     return self.render_template(
                         'airflow/trigger.html', dag_id=dag_id, origin=origin, conf=request_conf