diff options
Diffstat (limited to 'src/onaptests/steps/cloud/k8s_connectivity_info_create.py')
-rw-r--r-- | src/onaptests/steps/cloud/k8s_connectivity_info_create.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/onaptests/steps/cloud/k8s_connectivity_info_create.py b/src/onaptests/steps/cloud/k8s_connectivity_info_create.py index de0e683..2855be7 100644 --- a/src/onaptests/steps/cloud/k8s_connectivity_info_create.py +++ b/src/onaptests/steps/cloud/k8s_connectivity_info_create.py @@ -1,5 +1,6 @@ """Connectivity info creation module.""" from onapsdk.configuration import settings +from onapsdk.exceptions import APIError from onapsdk.msb.k8s import ConnectivityInfo from ..base import BaseStep @@ -31,7 +32,7 @@ class K8SConnectivityInfoStep(BaseStep): try: self._logger.info("Check if k8s connectivity information exists") ConnectivityInfo.get_connectivity_info_by_region_id(settings.CLOUD_REGION_ID) - except ValueError: + except APIError: self._logger.info("Create the k8s connectivity information") ConnectivityInfo.create(settings.CLOUD_REGION_ID, settings.CLOUD_REGION_CLOUD_OWNER, |