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:
Victor Sergeyev 2013-12-25 17:29:56 +02:00 committed by Radomir Dopieralski
parent 0b52ee09ff
commit 57653b838c
2 changed files with 5 additions and 6 deletions

View File

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

View File

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