From c12108e720abe7b00c53248817ecaf27987cb561 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 20 Mar 2018 11:14:03 -0500 Subject: [PATCH] Provide OpenStackConfigException backwards compat osc-lib does a 'import os_client_config.exceptions as occ_exceptions' or 'import openstack.config.exceptions as occ_exceptions' and then try/caches occ_exceptions.OpenStackConfigException. Add openstack.config.exceptions.OpenStackConfigException back as an alias for openstack.exceptions.ConfigException to ease that transition. Closes-Bug: 1757391 Change-Id: Ifaab26e5c71ee3f7268443ca396e3f93b83e2b7f --- openstack/config/exceptions.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 openstack/config/exceptions.py diff --git a/openstack/config/exceptions.py b/openstack/config/exceptions.py new file mode 100644 index 000000000..932de73cf --- /dev/null +++ b/openstack/config/exceptions.py @@ -0,0 +1,17 @@ +# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +from openstack import exceptions + +OpenStackConfigException = exceptions.ConfigException