Skip to content

Commit

Permalink
ES plugin now supports json loads
Browse files Browse the repository at this point in the history
  • Loading branch information
heynemann committed Jul 27, 2014
1 parent 2af2006 commit 748ad74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cow/plugins/es_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def validate(cls, result, *args, **kw):
logging.error('Elastic Search healthcheck failed with %s' % result.body)
return False

result = loads(result.body)
result = loads(str(result.body))
return result['status'] in ['green', 'yellow']

@classmethod
Expand Down

0 comments on commit 748ad74

Please sign in to comment.