mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-5432: KVM - LibvirtStorageAdaptor only needs to disconnectPhysicalDiskByPath
for ISO-based disks. At least, that's how it was in 4.2, so restoring to that functionality.
This commit is contained in:
parent
07de75191c
commit
bb8b2805b6
@ -684,10 +684,8 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
|
||||
@Override
|
||||
public boolean disconnectPhysicalDiskByPath(String localPath) {
|
||||
// we've only ever cleaned up ISOs that are NFS mounted
|
||||
|
||||
String poolUuid = null;
|
||||
|
||||
if (localPath != null && localPath.startsWith(_mountPoint)) {
|
||||
if (localPath != null && localPath.startsWith(_mountPoint) && localPath.endsWith(".iso")) {
|
||||
String[] token = localPath.split("/");
|
||||
|
||||
if (token.length > 3) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user