Skip to content

Commit 0c915cd

Browse files
Koushik DasAbhinandan Prateek
authored andcommitted
bug CS-16171 : Cannot attach ISO on VMware VM due to Invalid datastore path error
1 parent 5c69742 commit 0c915cd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3150,7 +3150,8 @@ protected Answer execute(AttachIsoCommand cmd) {
31503150

31513151
// TODO, check if iso is already attached, or if there is a previous
31523152
// attachment
3153-
String isoDatastorePath = String.format("[%s] %s%s", getSecondaryDatastoreUUID(storeUrl), isoStorePathFromRoot, isoFileName);
3153+
String storeName = getSecondaryDatastoreUUID(storeUrl).replace("-", "");
3154+
String isoDatastorePath = String.format("[%s] %s%s", storeName, isoStorePathFromRoot, isoFileName);
31543155

31553156
if (cmd.isAttach()) {
31563157
vmMo.attachIso(isoDatastorePath, morSecondaryDs, true, false);

0 commit comments

Comments
 (0)