Skip to content

Commit f29d8a2

Browse files
author
Pearl Dsilva
committed
minor fix
1 parent ed48818 commit f29d8a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ Use VIR_DOMAIN_XML_SECURE (value = 1) prior to v1.0.0.
391391
destDomain.free();
392392
}
393393
// Revert CLVM volumes to exclusive mode on failure
394-
if (to != null) {
394+
if (to != null && result != null) {
395395
LibvirtComputingResource.modifyClvmVolumesStateForMigration(disks, libvirtComputingResource, to, LibvirtComputingResource.ClvmVolumeState.EXCLUSIVE);
396396
}
397397
} catch (final LibvirtException e) {

0 commit comments

Comments
 (0)