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

Handled upgrade scenario where data store already exists in vCenter
Reviewed-by: Murali
This commit is contained in:
Koushik Das 2012-09-03 19:24:01 +05:30
parent 44860a9589
commit 5d225057bc
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 storeName = getSecondaryDatastoreUUID(storeUrl).replace("-", "");
DatastoreMO secondaryDsMo = new DatastoreMO(getServiceContext(), morSecondaryDs);
String storeName = secondaryDsMo.getName();
String isoDatastorePath = String.format("[%s] %s%s", storeName, isoStorePathFromRoot, isoFileName);
if (cmd.isAttach()) {