From 38e8e8bfa4edcd298df390841bfe4f11207b6a2e Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Wed, 10 Apr 2013 00:00:37 +0000 Subject: 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 --- nova/volume/cinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit