Decode in utf-8 solr check in prerun conn_info

This commit is contained in:
Marko Bocevski 2020-09-16 09:27:06 +02:00 committed by GitHub
parent cc50b73783
commit bb3e1d401c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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