Fix exception log msg in attach volume method

Attach volume happened when volume's status is attaching or available, but
the exception msg only contain info about "available". So fix it.

Change-Id: I1caf83b94b3e4158eff88871a4187041a25e5d1c
Closes-Bug: #1270020
This commit is contained in:
ling-yun 2014-01-17 10:49:58 +08:00
parent 5be4620ae5
commit 2f39c85230
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ class VolumeManager(manager.SchedulerDependentManager):
msg = _("being attached by different mode")
raise exception.InvalidVolume(reason=msg)
elif volume['status'] != "available":
msg = _("status must be available")
msg = _("status must be available or attaching")
raise exception.InvalidVolume(reason=msg)
# TODO(jdg): attach_time column is currently varchar