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
|
import re
|
||||||
conn_info = connection.read()
|
conn_info = connection.read()
|
||||||
# SolrCloud
|
# 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)
|
eval(conn_info)
|
||||||
|
|
||||||
def init_db():
|
def init_db():
|
||||||
|
|
Loading…
Reference in New Issue