From 46ab021d9da8851d054d05b6497e2bb420914391 Mon Sep 17 00:00:00 2001 From: Sam Mueller <83286605+Locutus66@users.noreply.github.com> Date: Sun, 5 Dec 2021 19:09:00 -0500 Subject: [PATCH] check_solr_connection bug fix If the ResponseHeader contains "zkConnected": false, your deployment will throw a "NameError: name 'false' is not defined" without this proposed line I added. --- images/ckan/2.9/setup/app/prerun.py | 1 + 1 file changed, 1 insertion(+) diff --git a/images/ckan/2.9/setup/app/prerun.py b/images/ckan/2.9/setup/app/prerun.py index f31c719..2dc1301 100644 --- a/images/ckan/2.9/setup/app/prerun.py +++ b/images/ckan/2.9/setup/app/prerun.py @@ -83,6 +83,7 @@ def check_solr_connection(retry=None): conn_info = connection.read() # SolrCloud conn_info = re.sub(r'"zkConnected":true', '"zkConnected":True', conn_info.decode('utf-8')) + conn_info = re.sub(r'"zkConnected":false', '"zkConnected":False', conn_info.decode('utf-8')) eval(conn_info) def init_db():