diff options
-rw-r--r-- | onap-dcae-cbs-docker-client/Changelog.md | 3 | ||||
-rw-r--r-- | onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client/client.py | 4 | ||||
-rw-r--r-- | onap-dcae-cbs-docker-client/pom.xml | 2 | ||||
-rw-r--r-- | onap-dcae-cbs-docker-client/setup.py | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/onap-dcae-cbs-docker-client/Changelog.md b/onap-dcae-cbs-docker-client/Changelog.md index fa4764d..d0ee35b 100644 --- a/onap-dcae-cbs-docker-client/Changelog.md +++ b/onap-dcae-cbs-docker-client/Changelog.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [2.1.1] - 04/27/2020 +* Bug fix DCAEGEN2-2213 ConnectionError exception is lost when CBSUnreachable is raised + ## [2.1.0] - 6/24/2019 * Add support for connecting to the CBS if it is running as HTTPS instead of HTTP diff --git a/onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client/client.py b/onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client/client.py index c1193d9..d02b1d1 100644 --- a/onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client/client.py +++ b/onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client/client.py @@ -66,8 +66,8 @@ def _get_path(path): res.text, ) raise CantGetConfig(res.status_code, res.text) - except requests.exceptions.ConnectionError: # this is thrown if requests.get cant even connect to the endpoint - raise CBSUnreachable() + except requests.exceptions.ConnectionError as e: # this is thrown if requests.get cant even connect to the endpoint + raise CBSUnreachable(e) ######### diff --git a/onap-dcae-cbs-docker-client/pom.xml b/onap-dcae-cbs-docker-client/pom.xml index cd20ce9..6910bde 100644 --- a/onap-dcae-cbs-docker-client/pom.xml +++ b/onap-dcae-cbs-docker-client/pom.xml @@ -28,7 +28,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. <groupId>org.onap.dcaegen2.utils</groupId> <artifactId>onap-dcae-cbs-docker-client</artifactId> <name>dcaegen2-utils-python-cbs-docker-client</name> - <version>2.1.0-SNAPSHOT</version> + <version>2.1.1-SNAPSHOT</version> <url>http://maven.apache.org</url> <properties> diff --git a/onap-dcae-cbs-docker-client/setup.py b/onap-dcae-cbs-docker-client/setup.py index 77518ee..017f7b3 100644 --- a/onap-dcae-cbs-docker-client/setup.py +++ b/onap-dcae-cbs-docker-client/setup.py @@ -19,7 +19,7 @@ from setuptools import setup, find_packages setup( name="onap_dcae_cbs_docker_client", description="very lightweight client for a DCAE dockerized component to get it's config from the CBS", - version="2.1.0", + version="2.1.1", packages=find_packages(), author="Tommy Carpenter", author_email="tommy@research.att.com", |