[gnome-boxes/wip/clone: 9/16] libvirt-broker: Ignore transient guestfs domains
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/clone: 9/16] libvirt-broker: Ignore transient guestfs domains
- Date: Tue, 3 May 2016 23:17:44 +0000 (UTC)
commit 1dfd1cb0aa32f6871eeaff44dcb048e2409ec475
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue May 3 21:44:16 2016 +0100
libvirt-broker: Ignore transient guestfs domains
Boxes need not show these domains to users and users are not expected to
interact with them.
src/libvirt-broker.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-broker.vala b/src/libvirt-broker.vala
index c79758c..0a5b920 100644
--- a/src/libvirt-broker.vala
+++ b/src/libvirt-broker.vala
@@ -71,6 +71,12 @@ private class Boxes.LibvirtBroker : Boxes.Broker {
// New == Added after Boxes launch
private async void try_add_new_domain (CollectionSource source, GVir.Connection connection, GVir.Domain
domain) {
+ if (domain.get_name ().has_prefix ("guestfs-")) {
+ debug ("Ignoring guestfs domain '%s'", domain.get_name ());
+
+ return;
+ }
+
try {
yield add_domain (source, connection, domain);
} catch (GLib.Error error) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]