[gnome-boxes] Don't set multiple flags in domain.shutdown
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Don't set multiple flags in domain.shutdown
- Date: Tue, 28 Aug 2012 10:56:44 +0000 (UTC)
commit f2c928782cbbdd77cf1e7659013c1f7f2cb892ce
Author: Alexander Larsson <alexl redhat com>
Date: Mon Aug 27 16:52:46 2012 +0200
Don't set multiple flags in domain.shutdown
GVir.Domain.shutdown() only takes one flag, so we currently get:
Unable to shutdown domain: flags for acpi power button and guest
agent are mutually exclusive
We don't have any particular requirements so we pass 0 which means
try guest agent and fall back to acpi.
src/libvirt-machine.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index cc96e84..b819482 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -554,8 +554,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
});
try {
- domain.shutdown (GVir.DomainShutdownFlags.ACPI_POWER_BTN |
- GVir.DomainShutdownFlags.GUEST_AGENT);
+ domain.shutdown (0);
} catch (GLib.Error error) {
warning ("Failed to reboot '%s': %s", domain.get_name (), error.message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]