[gnome-boxes] libvirt-broker: Make use of ensure_storage_pool()



commit 5f48f074e0737d32f911c74dc8db6007d49c3a85
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Jul 15 17:16:15 2015 +0100

    libvirt-broker: Make use of ensure_storage_pool()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752417

 src/libvirt-broker.vala |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/libvirt-broker.vala b/src/libvirt-broker.vala
index a7180db..571e8c8 100644
--- a/src/libvirt-broker.vala
+++ b/src/libvirt-broker.vala
@@ -112,14 +112,7 @@ private class Boxes.LibvirtBroker : Boxes.Broker {
             yield connection.open_async (null);
             yield connection.fetch_domains_async (null);
             yield connection.fetch_storage_pools_async (null);
-            var pool = Boxes.get_storage_pool (connection);
-            if (pool != null) {
-                pool.set_autostart (true); // Ensure autostart is enabled
-                if (pool.get_info ().state == GVir.StoragePoolState.INACTIVE)
-                    yield pool.start_async (0, null);
-                // If default storage pool exists, we should refresh it already
-                yield pool.refresh_async (null);
-            }
+            yield Boxes.ensure_storage_pool (connection);
         } catch (GLib.Error error) {
             warning (error.message);
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]