Fix zookeeper returning true when in SolrCloud mode
This commit is contained in:
parent
f8425cb22d
commit
6ca163fae6
|
@ -57,6 +57,8 @@ def check_solr_connection(retry=None):
|
|||
else:
|
||||
import re
|
||||
conn_info = connection.read()
|
||||
# SolrCloud
|
||||
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info)
|
||||
eval(conn_info)
|
||||
|
||||
def init_db():
|
||||
|
|
|
@ -57,6 +57,8 @@ def check_solr_connection(retry=None):
|
|||
else:
|
||||
import re
|
||||
conn_info = connection.read()
|
||||
# SolrCloud
|
||||
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info)
|
||||
eval(conn_info)
|
||||
|
||||
def init_db():
|
||||
|
|
|
@ -57,7 +57,8 @@ def check_solr_connection(retry=None):
|
|||
else:
|
||||
import re
|
||||
conn_info = connection.read()
|
||||
print(conn_info)
|
||||
# SolrCloud
|
||||
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info)
|
||||
eval(conn_info)
|
||||
|
||||
def init_db():
|
||||
|
|
Loading…
Reference in New Issue