From: Dan Prince Date: Tue, 8 Jan 2013 19:00:09 +0000 (-0500) Subject: Fix CinderClient exception name in EMCISCSIDriver. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=edb5491070f7a6bab257089e7b98278b68949cb1;p=openstack-build%2Fcinder-build.git Fix CinderClient exception name in EMCISCSIDriver. Change NovaException to CinderException in the emc driver. Change-Id: Id84ca2a354afc6a7b795aef779a9fdd2567ce0d6 --- diff --git a/cinder/volume/drivers/emc.py b/cinder/volume/drivers/emc.py index c128364cc..c7e5029db 100644 --- a/cinder/volume/drivers/emc.py +++ b/cinder/volume/drivers/emc.py @@ -929,8 +929,8 @@ class EMCISCSIDriver(driver.ISCSIDriver): tries = 0 while not os.path.exists(host_device): if tries >= FLAGS.num_iscsi_scan_tries: - raise exception.NovaException(_("iSCSI device not found at %s") - % (host_device)) + raise exception.CinderException( + _("iSCSI device not found at %s") % (host_device)) LOG.warn(_("ISCSI volume not yet found at: %(host_device)s. " "Will rescan & retry. Try number: %(tries)s") %