mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug CS-16171 : Cannot attach ISO on VMware VM due to Invalid datastore path error
This commit is contained in:
parent
5c69742f7d
commit
0c915cd69e
@ -3150,7 +3150,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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user