summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2013-04-10 00:00:37 +0000
committerJoe Gordon <jogo@cloudscaling.com>2013-04-10 00:00:37 +0000
commit38e8e8bfa4edcd298df390841bfe4f11207b6a2e (patch)
tree59a2ac1b94b422816812dfbb75108c9cb3e17b76
parenta993b2b969bad0785aad02dc2a6f04ac0c675f8d (diff)
downloadnova-38e8e8bfa4edcd298df390841bfe4f11207b6a2e.tar.gz
nova-38e8e8bfa4edcd298df390841bfe4f11207b6a2e.tar.xz
nova-38e8e8bfa4edcd298df390841bfe4f11207b6a2e.zip
Clarify volume related exception message
Before the message was "status must be available," which could either mean nova couldn't fetch the status or the status was not set to 'available'. As this message means the latter, make it more explicit by putting available in quotes. Change-Id: I1b167073463c781569919926fa9b8960f4fecf59
-rw-r--r--nova/volume/cinder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/volume/cinder.py b/nova/volume/cinder.py
index ca7f86da1..98e548332 100644
--- a/nova/volume/cinder.py
+++ b/nova/volume/cinder.py
@@ -204,7 +204,7 @@ class API(base.Base):
def check_attach(self, context, volume, instance=None):
# TODO(vish): abstract status checking?
if volume['status'] != "available":
- msg = _("status must be available")
+ msg = _("status must be 'available'")
raise exception.InvalidVolume(reason=msg)
if volume['attach_status'] == "attached":
msg = _("already attached")