]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Add missing exception from volume/api.py
authorAbhinav Srivastava <abhiabhi.sr@gmail.com>
Tue, 11 Jun 2013 18:16:32 +0000 (14:16 -0400)
committerAbhinav Srivastava <abhiabhi.sr@gmail.com>
Tue, 11 Jun 2013 18:20:18 +0000 (14:20 -0400)
Add InvalidSourceVolume exception that is used in the volume/api.py
without being defined.

Fix bug 1189987

Change-Id: Ifcea41e882e259416c91c91d9b202b3a939eb12f

cinder/exception.py

index 6ccbfc9fc38d0bed340d054acd6200835aa4a7f3..674e1ced45a0a40e861d6fd34875433eac8f9b47 100644 (file)
@@ -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.")