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)
  • Loading branch information
microhuang authored and kaxil committed Jul 5, 2021
1 parent a71f9d6 commit 4c1abfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c1abfb

Please sign in to comment.