]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Removes exception instance creation on execute()
authorZhongyue Luo <zhongyue.nah@intel.com>
Mon, 19 Aug 2013 07:39:00 +0000 (15:39 +0800)
committerZhongyue Luo <zhongyue.nah@intel.com>
Tue, 27 Aug 2013 01:37:46 +0000 (09:37 +0800)
commit3f54b6c053cfa464ad6d9e8883563d29dd6dfa1f
treede9a4fb4c93c229e3f2bbd785830ed7db0fd339a
parentedea6f62184e178f7fbe24565dcada140e6dfa44
Removes exception instance creation on execute()

For every excption raised in utils.execute(), a new instance is created.
This patch removes this redundant step and directly uses exceptions
defined in Oslo.

Change-Id: I1425d7f1d69a8fde8fde29444fae4d12d045b730
25 files changed:
cinder/backup/drivers/ceph.py
cinder/backup/drivers/tsm.py
cinder/exception.py
cinder/tests/fake_utils.py
cinder/tests/test_backup_ceph.py
cinder/tests/test_backup_tsm.py
cinder/tests/test_glusterfs.py
cinder/tests/test_gpfs.py
cinder/tests/test_nfs.py
cinder/tests/test_sheepdog.py
cinder/tests/test_storwize_svc.py
cinder/tests/test_utils.py
cinder/utils.py
cinder/volume/driver.py
cinder/volume/drivers/gpfs.py
cinder/volume/drivers/lvm.py
cinder/volume/drivers/netapp/nfs.py
cinder/volume/drivers/nfs.py
cinder/volume/drivers/san/hp/hp_3par_common.py
cinder/volume/drivers/san/hp_lefthand.py
cinder/volume/drivers/san/san.py
cinder/volume/drivers/sheepdog.py
cinder/volume/drivers/storwize_svc.py
cinder/volume/flows/create_volume.py
cinder/volume/utils.py