From 4c1abfbe0966969929f32a2adc57e9835bac9312 Mon Sep 17 00:00:00 2001 From: muhua Date: Sun, 27 Jun 2021 14:16:55 +0800 Subject: [PATCH] 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 63f232a255ffc..fdfea4228246c 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -1523,7 +1523,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