]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix wrong exception reference
authorSergey Gotliv <sgotliv@redhat.com>
Tue, 6 May 2014 21:27:46 +0000 (00:27 +0300)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 14:08:51 +0000 (22:08 +0800)
iscsi.py should catch cinder.exception.NotFound instead of
cinder.brick.exception.NotFound.

Change-Id: I77134683712e9706619a7f7fe82caed42ede5887
Closes-Bug: #1300136
(cherry picked from commit 115b8447618073d3383bbd612ebd2fc68c8c5d28)

cinder/volume/iscsi.py

index 807b1c1ac41963937f8b974a1cd3d06cac6244e0..4e29b6fd116aefb2d117ee99ea3784225b593c3a 100644 (file)
@@ -18,8 +18,8 @@ import re
 
 from oslo.config import cfg
 
-from cinder.brick import exception
 from cinder.brick.iscsi import iscsi
+from cinder import exception
 from cinder.openstack.common.gettextutils import _
 from cinder.openstack.common import log as logging
 from cinder.openstack.common import processutils as putils