Decode in utf-8 solr check in prerun conn_info
This commit is contained in:
parent
cc50b73783
commit
bb3e1d401c
|
@ -58,7 +58,7 @@ def check_solr_connection(retry=None):
|
|||
import re
|
||||
conn_info = connection.read()
|
||||
# SolrCloud
|
||||
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info)
|
||||
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info.decode('utf-8'))
|
||||
eval(conn_info)
|
||||
|
||||
def init_db():
|
||||
|
|
Loading…
Reference in New Issue