0002-destroy-when-acpi-feature-not-enabled.patch

Jan Horacek, 03/02/2012 04:18 AM

Download (842 Bytes)

View differences:

var-lib-one-remotes-vmm-kvm/shutdown
28 28

  
29 29
deploy_id=$1
30 30

  
31
virsh --connect $LIBVIRT_URI shutdown $deploy_id
31
if virsh --connect $LIBVIRT_URI dumpxml $deploy_id | grep -q acpi
32
then
33
	virsh --connect $LIBVIRT_URI shutdown $deploy_id
34
else
35
	virsh --connect $LIBVIRT_URI destroy $deploy_id
36
fi
32 37

  
33 38
exit_code=$?
34 39

  
35
-