Skip to content

Commit 4532248

Browse files
committed
Apply suggestions from code review
Co-authored-by: Abhisar Sinha <63767682+abh1sar@users.noreply.github.com>
1 parent a63827f commit 4532248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtRestoreBackupCommandWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ private boolean replaceBlockDeviceWithBackup(KVMStoragePoolManager storagePoolMg
289289
if (Storage.StoragePoolType.Linstor.equals(volumePool.getPoolType())) {
290290
storagePoolMgr.connectPhysicalDisk(volumePool.getPoolType(), volumePool.getUuid(), volumeUuid, null);
291291
} else {
292-
disk = volumeStoragePool.getPhysicalDisk(getVolumeUuidFromPath(volumePath, volumePool));
292+
disk = volumeStoragePool.getPhysicalDisk(volumePath);
293293
}
294294
qemu.setSkipTargetVolumeCreation(true);
295295
}

0 commit comments

Comments
 (0)