]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix CinderClient exception name in EMCISCSIDriver.
authorDan Prince <dprince@redhat.com>
Tue, 8 Jan 2013 19:00:09 +0000 (14:00 -0500)
committerDan Prince <dprince@redhat.com>
Tue, 8 Jan 2013 19:00:09 +0000 (14:00 -0500)
Change NovaException to CinderException in the emc driver.

Change-Id: Id84ca2a354afc6a7b795aef779a9fdd2567ce0d6

cinder/volume/drivers/emc.py

index c128364cc6115f791f0504e4ce632b1e88bd4c78..c7e5029db684b5bd16e4b7343ec31ba8942cfe71 100644 (file)
@@ -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") %