Skip to content

Commit

Permalink
Fix "Invalid JSON configuration, must be a dict" (apache#16648)
Browse files Browse the repository at this point in the history
Wrong variable name used

(cherry picked from commit c975d4c)
(cherry picked from commit 4157346)
  • Loading branch information
microhuang authored and kaxil committed Jul 5, 2021
1 parent 8f8c076 commit 2637d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/views.py
Expand Up @@ -1524,7 +1524,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
Expand Down

0 comments on commit 2637d9a

Please sign in to comment.