CS16171 : Cannot attach ISO on VMware VM due to Invalid datastore path error

Handled upgrade scenario where data store already exists in vCenter
This commit is contained in:
Koushik Das 2012-09-10 14:26:25 +05:30 committed by Alex Huang
parent e5a16f40cd
commit d4b357f88f

View File

@ -3161,7 +3161,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()) {