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