From 19a4f505f48d590710e0342992e1da1fd34c220c Mon Sep 17 00:00:00 2001 From: Minmin Ren Date: Fri, 22 Nov 2019 07:16:34 +0000 Subject: [PATCH] Remove unused exception catch in revert VolumeSizeExceedsAvailableQuota exception won't be raised because volume size does not change. Change-Id: I3198cf17ba87c61802d0897ec9a64838628c59e9 Related-Change: https://review.opendev.org/#/c/613664/ --- cinder/api/v3/volumes.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cinder/api/v3/volumes.py b/cinder/api/v3/volumes.py index e951817e450..d611be1e87f 100644 --- a/cinder/api/v3/volumes.py +++ b/cinder/api/v3/volumes.py @@ -207,8 +207,6 @@ class VolumeController(volumes_v2.VolumeController): self.volume_api.revert_to_snapshot(context, volume, l_snap) except (exception.InvalidVolume, exception.InvalidSnapshot) as e: raise exc.HTTPConflict(explanation=six.text_type(e)) - except exception.VolumeSizeExceedsAvailableQuota as e: - raise exc.HTTPForbidden(explanation=six.text_type(e)) def _get_image_snapshot(self, context, image_uuid): image_snapshot = None