From 84dca0cc485c7400fddab1a05be4e5cc78424ebb Mon Sep 17 00:00:00 2001 From: muhua Date: Fri, 25 Jun 2021 11:39:44 +0800 Subject: [PATCH] fix "Invalid JSON configuration, must be a dict" 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 8496daaa58b6c..033e2c2bf604b 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -1526,7 +1526,7 @@ def trigger(self, session=None): 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