bug CS-16171 : Cannot attach ISO on VMware VM due to Invalid datastore path error

Issue happens as incorrect datastore name is passed while attaching ISO, passing correct name.
Reviewed-by: Abhi
This commit is contained in:
Koushik Das 2012-08-30 11:07:04 +05:30
parent 106ccc5b7b
commit 4748c87349
1 changed files with 2 additions and 1 deletions

View File

@ -3327,7 +3327,8 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
// TODO, check if iso is already attached, or if there is a previous
// attachment
String isoDatastorePath = String.format("[%s] %s%s", getSecondaryDatastoreUUID(storeUrl), isoStorePathFromRoot, isoFileName);
String storeName = getSecondaryDatastoreUUID(storeUrl).replace("-", "");
String isoDatastorePath = String.format("[%s] %s%s", storeName, isoStorePathFromRoot, isoFileName);
if (cmd.isAttach()) {
vmMo.attachIso(isoDatastorePath, morSecondaryDs, true, false);