Change in vdsm[master]: blockVolume: fix validateCreateVolumeParams exception
Federico Simoncelli
fsimonce at redhat.com
Thu May 29 20:38:19 UTC 2014
Federico Simoncelli has uploaded a new change for review.
Change subject: blockVolume: fix validateCreateVolumeParams exception
......................................................................
blockVolume: fix validateCreateVolumeParams exception
Change-Id: I874cfbad8091396548463b98a13249a25baf9e9f
Signed-off-by: Federico Simoncelli <fsimonce at redhat.com>
---
M vdsm/storage/blockVolume.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/26/28226/1
diff --git a/vdsm/storage/blockVolume.py b/vdsm/storage/blockVolume.py
index fba64a4..aca13d7 100644
--- a/vdsm/storage/blockVolume.py
+++ b/vdsm/storage/blockVolume.py
@@ -125,7 +125,7 @@
# Sparse-Raw not supported for block volumes
if preallocate == volume.SPARSE_VOL and volFormat == volume.RAW_FORMAT:
- raise se.IncorrectFormat(srcVolUUID)
+ raise se.IncorrectType(type2name(preallocate))
# Snapshot should be COW volume
if srcVolUUID != volume.BLANK_UUID and volFormat != volume.COW_FORMAT:
--
To view, visit http://gerrit.ovirt.org/28226
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I874cfbad8091396548463b98a13249a25baf9e9f
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimonce at redhat.com>
More information about the vdsm-patches
mailing list