mirror of https://github.com/apache/cloudstack.git
vmware: do not create vm datastore when attach an existing volume on solidfire (#7160)
This commit is contained in:
parent
0941d01e97
commit
b2e9993b0a
|
|
@ -2823,7 +2823,10 @@ public class VmwareStorageProcessor implements StorageProcessor {
|
|||
throw new Exception("A relevant SCSI disk could not be located to use to create a datastore.");
|
||||
}
|
||||
|
||||
morDs = firstHostDatastoreSystemMO.createVmfsDatastore(datastoreName, hostScsiDisk);
|
||||
morDs = firstHostDatastoreSystemMO.findDatastoreByName(datastoreName);
|
||||
if (morDs == null) {
|
||||
morDs = firstHostDatastoreSystemMO.createVmfsDatastore(datastoreName, hostScsiDisk);
|
||||
}
|
||||
|
||||
if (morDs != null) {
|
||||
waitForAllHostsToMountDatastore(lstHosts, new DatastoreMO(context, morDs));
|
||||
|
|
|
|||
Loading…
Reference in New Issue