diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2018-03-01 14:31:03 +0000 |
---|---|---|
committer | Fatih Degirmenci <fdegir@gmail.com> | 2018-03-01 14:31:03 +0000 |
commit | 79bc4163f96fd3d470fde2eac1597c0637ac7ac8 (patch) | |
tree | b29e49c7259834bf9d939a6aa7143bd32432be1f /xci/scripts/vm | |
parent | fa745164fdd4955cdd1c6af5164d83146575b14b (diff) |
Do not fail the if virsh command fails
Change-Id: Id9c55b45719399c6c78c0d3d8b97926a2907b7f8
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Diffstat (limited to 'xci/scripts/vm')
-rwxr-xr-x | xci/scripts/vm/start-new-vm.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh index 78d385bd..c4b40b96 100755 --- a/xci/scripts/vm/start-new-vm.sh +++ b/xci/scripts/vm/start-new-vm.sh @@ -31,8 +31,8 @@ grep -q -i ^Y$ /sys/module/kvm_intel/parameters/nested || { echo "Nested virtual destroy_vm_on_failures() { local exit_err=${xci_error:-130} if ! ${XCI_KEEP_CLEAN_VM_ON_FAILURES}; then - sudo virsh destroy ${VM_NAME}_xci_vm - sudo virsh undefine ${VM_NAME}_xci_vm + sudo virsh destroy ${VM_NAME}_xci_vm || true + sudo virsh undefine ${VM_NAME}_xci_vm || true fi exit $exit_err } |