From e74e90d201bec51f4444b72546ea9d42f0c8d992 Mon Sep 17 00:00:00 2001 From: Drew Meyers <100967535+drewm-jpl@users.noreply.github.com> Date: Mon, 11 Sep 2023 08:37:02 -0700 Subject: [PATCH] HC-487: Test out and deploy locally a Elasticsearch service in clustered mode (multi-node) (#57) * SSDS-3497: Support 3-node ES cluster mode * HC-487: Bump version --- hysds_commons/__init__.py | 2 +- hysds_commons/elasticsearch_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hysds_commons/__init__.py b/hysds_commons/__init__.py index 90d672b..da92a97 100644 --- a/hysds_commons/__init__.py +++ b/hysds_commons/__init__.py @@ -3,6 +3,6 @@ from __future__ import division from __future__ import absolute_import -__version__ = "1.0.15" +__version__ = "1.0.16" __description__ = "Common HySDS Functions, Utilities, Etc." __url__ = "https://github.jpl.nasa.gov/hysds-org/hysds_commons" diff --git a/hysds_commons/elasticsearch_utils.py b/hysds_commons/elasticsearch_utils.py index e4fdd50..e7e9a2b 100644 --- a/hysds_commons/elasticsearch_utils.py +++ b/hysds_commons/elasticsearch_utils.py @@ -12,7 +12,7 @@ class ElasticsearchUtility: def __init__(self, es_url, logger=None, **kwargs): - self.es = elasticsearch.Elasticsearch(hosts=[es_url], **kwargs) + self.es = elasticsearch.Elasticsearch(hosts=es_url if type(es_url) == list else [es_url], **kwargs) self.es_url = es_url self.logger = logger self.version = None