diff --git a/sensugrid.py b/sensugrid.py index 34ad8a5..3a00324 100644 --- a/sensugrid.py +++ b/sensugrid.py @@ -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 @@ -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')