From bc0442a8edf4fd059f0a94dd27c20597138fc3c2 Mon Sep 17 00:00:00 2001 From: Sergey Gotliv Date: Wed, 7 May 2014 00:27:46 +0300 Subject: [PATCH] Fix wrong exception reference 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/iscsi.py b/cinder/volume/iscsi.py index 807b1c1ac41..4e29b6fd116 100644 --- a/cinder/volume/iscsi.py +++ b/cinder/volume/iscsi.py @@ -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