Commit fceb7a87 by Tim Babych

when in ES_DISABLED make get_es() return None to ping instead of False

parent 27dfc20e
...@@ -20,10 +20,10 @@ else: ...@@ -20,10 +20,10 @@ else:
def get_es(): def get_es():
return Mock( return Mock(
ping=lambda: False, ping=lambda: None,
info=lambda: { info=lambda: {
'ok': False, 'ok': None,
'status': 503, 'status': 203, # request processed, information may be from another source
}, },
) )
......
Markdown is supported
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