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:
def get_es():
return Mock(
ping=lambda: False,
ping=lambda: None,
info=lambda: {
'ok': False,
'status': 503,
'ok': None,
'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