Fix exception imports from tuskarclient
Location of exceptions was changed in tuskarclient, so we should fix related imports in tuskar-ui. See patch to tuskarclient - Iacbf219168fae62d864c6594dd41e0737e848cfa Change-Id: I7940d3ea6d546e28e5a9802932c19075a60f81cb
This commit is contained in:
parent
0b52ee09ff
commit
57653b838c
@ -13,7 +13,7 @@
|
||||
# under the License.
|
||||
|
||||
from openstack_dashboard import exceptions
|
||||
import tuskarclient.exc as tuskarclient
|
||||
from tuskarclient.openstack.common.apiclient import exceptions as tuskarclient
|
||||
|
||||
NOT_FOUND = exceptions.NOT_FOUND
|
||||
RECOVERABLE = exceptions.RECOVERABLE + (tuskarclient.ClientException,)
|
||||
|
@ -13,13 +13,12 @@
|
||||
# under the License.
|
||||
|
||||
from openstack_dashboard.test.test_data import exceptions
|
||||
|
||||
import tuskarclient.exc as tuskar_exceptions
|
||||
from tuskarclient.openstack.common.apiclient import exceptions as tuskarclient
|
||||
|
||||
|
||||
def data(TEST):
|
||||
TEST.exceptions = exceptions.data
|
||||
|
||||
tuskar_exception = tuskar_exceptions.ClientException
|
||||
TEST.exceptions.tuskar = exceptions. \
|
||||
create_stubbed_exception(tuskar_exception)
|
||||
tuskar_exception = tuskarclient.ClientException
|
||||
TEST.exceptions.tuskar = exceptions.create_stubbed_exception(
|
||||
tuskar_exception)
|
||||
|
Loading…
x
Reference in New Issue
Block a user