Catch correct ironic exception

Catch exception from ironicclient instead of
fuel_health exceptions

Change-Id: I718638039b9ac2e0b93e93872085d3e083b3a6db
Closes-Bug: #1522740
This commit is contained in:
vsaienko 2015-12-04 15:19:58 +02:00 committed by tatyana-leontovich
parent 23b7ae2a1a
commit 48883c8f1b
1 changed files with 2 additions and 2 deletions

View File

@ -16,11 +16,11 @@
import logging
import traceback
from fuel_health import exceptions
import fuel_health.nmanager
import fuel_health.test
from ironicclient.common import utils
from ironicclient import exc as ironic_exc
LOG = logging.getLogger(__name__)
@ -50,7 +50,7 @@ class IronicTest(fuel_health.nmanager.NovaNetworkScenarioTest):
"""Delete particular node."""
try:
self.ironic_client.node.delete(node.uuid)
except exceptions.NotFound:
except ironic_exc.NotFound:
LOG.debug(traceback.format_exc())
def node_update(self, node, prop, value_prop, row='properties'):