Skip to content

Commit

Permalink
Fix non-working raw errors view in some cases
Browse files Browse the repository at this point in the history
Fixes #688.
  • Loading branch information
gdubicki committed May 30, 2022
1 parent 1c5a719 commit 9ce3688
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions puppetboard/views/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ def get_message(node_name, log, show_error_as):
@app.route('/report/<node_name>/<report_id>',
defaults={'env': app.config['DEFAULT_ENVIRONMENT'],
'show_error_as': app.config['SHOW_ERROR_AS']})
@app.route('/report/<node_name>/<report_id>/<show_error_as>',
defaults={'env': app.config['DEFAULT_ENVIRONMENT']})
@app.route('/<env>/report/<node_name>/<report_id>',
defaults={'show_error_as': app.config['SHOW_ERROR_AS']})
@app.route('/<env>/report/<node_name>/<report_id>/<show_error_as>')
Expand Down

0 comments on commit 9ce3688

Please sign in to comment.