[gnome-boxes] VMCreator: Use the Util::get_storage_pool() helper
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] VMCreator: Use the Util::get_storage_pool() helper
- Date: Thu, 18 Oct 2012 13:45:38 +0000 (UTC)
commit 90689b0dad0e79cd1047e49bdc2701aa544f69a9
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Oct 17 17:08:11 2012 +0200
VMCreator: Use the Util::get_storage_pool() helper
https://bugzilla.gnome.org/show_bug.cgi?id=676340
src/app.vala | 2 +-
src/vm-creator.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 961deaf..4c1df9e 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -258,7 +258,7 @@ private class Boxes.App: Boxes.UI {
yield connection.open_async (null);
yield connection.fetch_domains_async (null);
yield connection.fetch_storage_pools_async (null);
- var pool = connection.find_storage_pool_by_name (Config.PACKAGE_TARNAME);
+ var pool = Boxes.get_storage_pool (connection);
if (pool != null)
// If default storage pool exists, we should refresh it already
yield pool.refresh_async (null);
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index a3c6e53..16fef2c 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -273,7 +273,7 @@ private class Boxes.VMCreator {
}
private async StoragePool get_storage_pool () throws GLib.Error {
- var pool = connection.find_storage_pool_by_name (Config.PACKAGE_TARNAME);
+ var pool = Boxes.get_storage_pool (connection);
if (pool == null) {
var config = VMConfigurator.get_pool_config ();
pool = connection.create_storage_pool (config, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]