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
This commit is contained in:
Monty Taylor 2018-03-20 11:14:03 -05:00
parent a42fbe6748
commit c12108e720
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 17 additions and 0 deletions

View File

@ -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