mirror of https://github.com/apache/cloudstack.git
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:
parent
106ccc5b7b
commit
4748c87349
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue