From: Abhinav Srivastava Date: Tue, 11 Jun 2013 18:16:32 +0000 (-0400) Subject: Add missing exception from volume/api.py X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=7d4c7d986d6ba177ac0b347f10111bfbb57cb9ef;p=openstack-build%2Fcinder-build.git Add missing exception from volume/api.py Add InvalidSourceVolume exception that is used in the volume/api.py without being defined. Fix bug 1189987 Change-Id: Ifcea41e882e259416c91c91d9b202b3a939eb12f --- diff --git a/cinder/exception.py b/cinder/exception.py index 6ccbfc9fc..674e1ced4 100644 --- a/cinder/exception.py +++ b/cinder/exception.py @@ -144,6 +144,10 @@ class InvalidSnapshot(Invalid): message = _("Invalid snapshot") + ": %(reason)s" +class InvalidSourceVolume(Invalid): + message = _("Invalid source volume %(reason)s.") + + class VolumeAttached(Invalid): message = _("Volume %(volume_id)s is still attached, detach volume first.")