You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ur...@apache.org on 2021/06/27 06:17:32 UTC

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

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

uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


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

commit c975d4cb2f360a56fb8d54cd44b047e57d67efeb
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
---
 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 8496daa..033e2c2 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1526,7 +1526,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