Skip to content

Commit a299bdf

Browse files
author
Your Name
committed
Set defaults for solr schema name and version
1 parent 8584487 commit a299bdf

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ckan_cloud_operator/providers/solr/manager.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ def get_collection_status(collection_name):
9898
'collection_name': collection_name,
9999
'solr_http_endpoint': get_internal_http_endpoint()}
100100
else:
101-
res = json.loads(output)
101+
102+
res = {'schema': {'version': '2.8', 'name': 'ckan'}}
103+
try:
104+
res = json.loads(new_output)
105+
except:
106+
pass
102107
return {'ready': True,
103108
'collection_name': collection_name,
104109
'solr_http_endpoint': get_internal_http_endpoint(),

0 commit comments

Comments
 (0)