Skip to content

Commit 054ee34

Browse files
authored
Add missing return in replaceVolumeWithBackup
1 parent 40c22e2 commit 054ee34

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ private boolean replaceVolumeWithBackup(KVMStoragePoolManager storagePoolMgr, Pr
289289
if (hasBackingChain(backupPath)) {
290290
String[] qemuImgCmd = new String[] { Script.getExecutableAbsolutePath("qemu-img"), "convert", "-O", "qcow2", backupPath, volumePath };
291291
int flattenExit = Script.executeCommandForExitValue(qemuImgCmd);
292+
return flattenExit == 0;
292293
}
293294

294295
String[] rsyncCmd = new String[] { Script.getExecutableAbsolutePath("rsync"), "-az", backupPath, volumePath };

0 commit comments

Comments
 (0)