]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix unsaved exception in backup/drivers
authorKIYOHIRO ADACHI <adachi@mxs.nes.nec.co.jp>
Fri, 14 Mar 2014 07:04:57 +0000 (16:04 +0900)
committerKIYOHIRO ADACHI <adachi@mxs.nes.nec.co.jp>
Thu, 26 Jun 2014 01:23:38 +0000 (10:23 +0900)
commit3f67de92cfcfc61ca26156961e1f2d4d2ebded66
tree171659b74b23342884e02358b404e3772009e95e
parentd63f4beda80759e073767e16e240a0b491d791b5
Fix unsaved exception in backup/drivers

When an exception occurs during exception handling, it loses the
information of the first exception.

We should use the excutils.save_and_reraise_exception() in some cases.

Change-Id: I5d0ea53ba6c52138c71cca61aedbdf06338f2a7d
Closes-Bug: #1292380
cinder/backup/drivers/ceph.py
cinder/backup/drivers/swift.py
cinder/tests/test_backup_ceph.py
cinder/tests/test_backup_swift.py