Merge pull request #24 from keitaroinc/fix-prerun-solrcloud
Fix zookeeper returning true when in SolrCloud mode
This commit is contained in:
commit
cc50b73783
|
@ -57,6 +57,8 @@ def check_solr_connection(retry=None):
|
||||||
else:
|
else:
|
||||||
import re
|
import re
|
||||||
conn_info = connection.read()
|
conn_info = connection.read()
|
||||||
|
# SolrCloud
|
||||||
|
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info)
|
||||||
eval(conn_info)
|
eval(conn_info)
|
||||||
|
|
||||||
def init_db():
|
def init_db():
|
||||||
|
|
|
@ -57,6 +57,8 @@ def check_solr_connection(retry=None):
|
||||||
else:
|
else:
|
||||||
import re
|
import re
|
||||||
conn_info = connection.read()
|
conn_info = connection.read()
|
||||||
|
# SolrCloud
|
||||||
|
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info)
|
||||||
eval(conn_info)
|
eval(conn_info)
|
||||||
|
|
||||||
def init_db():
|
def init_db():
|
||||||
|
|
|
@ -57,7 +57,8 @@ def check_solr_connection(retry=None):
|
||||||
else:
|
else:
|
||||||
import re
|
import re
|
||||||
conn_info = connection.read()
|
conn_info = connection.read()
|
||||||
print(conn_info)
|
# SolrCloud
|
||||||
|
conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info)
|
||||||
eval(conn_info)
|
eval(conn_info)
|
||||||
|
|
||||||
def init_db():
|
def init_db():
|
||||||
|
|
Loading…
Reference in New Issue