Fix zookeeper returning true when in SolrCloud mode

This commit is contained in:
Marko Bocevski 2020-09-14 16:33:21 +02:00
parent f8425cb22d
commit 6ca163fae6
3 changed files with 6 additions and 1 deletions

View File

@ -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():

View File

@ -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():

View File

@ -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():