xenserver: Improved message for peeples to actually see what the problem is.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #576
This commit is contained in:
Funs 2015-07-10 11:01:41 +02:00 committed by Rohit Yadav
parent 6d92abcb76
commit ca68bb0ef7
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ public class Xenserver625StorageProcessor extends XenServerStorageProcessor {
final Set<VDI> setVdis = srcSr.getVDIs(conn);
if (setVdis.size() != 1) {
return new CopyCmdAnswer("Can't find template VDI under: " + uri.getHost() + ":" + uri.getPath() + "/" + volumeDirectory);
return new CopyCmdAnswer("Expected 1 VDI template but found " + setVdis.size() + " VDI template(s) on: " + uri.getHost() + ":" + uri.getPath() + "/" + volumeDirectory);
}
final VDI srcVdi = setVdis.iterator().next();