mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
e5a16f40cd
commit
d4b357f88f
@ -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()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user