Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

replacing json.dumps with flask jsonify helper wrapper #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sensugrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from flask import Flask
from flask import render_template
from flask import abort
from flask import jsonify

from reverseproxied import ReverseProxied
from gridcheck import check_connection
Expand Down Expand Up @@ -250,7 +251,7 @@ def healthcheck():
retdata[dc['name']]['error'] = 'True'
ret.append(retdata)

return json.dumps(ret)
return jsonify(ret)


@app.template_filter('color_for_event')
Expand Down