From 7d4c7d986d6ba177ac0b347f10111bfbb57cb9ef Mon Sep 17 00:00:00 2001 From: Abhinav Srivastava Date: Tue, 11 Jun 2013 14:16:32 -0400 Subject: [PATCH] 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 --- cinder/exception.py | 4 ++++ 1 file changed, 4 insertions(+) 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.") -- 2.45.2