You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6149044
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtRestoreBackupCommandWrapper.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -422,7 +422,7 @@ private boolean attachVolumeToVm(KVMStoragePoolManager storagePoolMgr, String vm
422
422
virshCmd.add(deviceToAttachDiskTo);
423
423
virshCmd.add("--driver");
424
424
virshCmd.add("qemu");
425
-
if (!Storage.StoragePoolType.Linstor.equals(volumePool.getPoolType())) {
425
+
if (!List.of(Storage.StoragePoolType.Linstor, Storage.StoragePoolType.StorPool).contains(volumePool.getPoolType())) {
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtRestoreBackupCommandWrapperTest.java
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -695,6 +695,17 @@ public void testAttachVolumeOmitsQcow2SubdriverForLinstor() throws Exception {
Copy file name to clipboardExpand all lines: plugins/storage/volume/storpool/src/main/java/com/cloud/hypervisor/kvm/storage/StorPoolStorageAdaptor.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -485,9 +485,11 @@ public KVMPhysicalDisk createPhysicalDisk(String name, KVMStoragePool pool, Phys
0 commit comments