Skip to content
Snippets Groups Projects
Verified Commit f1f039cd authored by Daniel Bessey's avatar Daniel Bessey
Browse files

Fix health check view

Generated an error when rendering JSON:
AttributeError: 'str' object has no attribute 'identifier'
parent c40b2d8d
Branches
No related merge requests found
Pipeline #328376 failed with stage
in 6 minutes and 3 seconds
......@@ -6,11 +6,11 @@ class HealthCheckView(MainView):
def render_to_response_json(self, plugins, status):
return JsonResponse(
{
str(p.identifier()): {
str(identifier): {
"status": "OK" if p.status == 1 else "ERROR",
"took": p.time_taken,
}
for p in plugins
for identifier, p in plugins.items()
},
status=status,
)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment