From bf5cb99b5a17e3fd3a26027e666da5a09bbf8dc7 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 14 Jun 2010 13:37:13 -0400 Subject: [PATCH] createpool: Fix destructive pool building Any time we would prompt when building a pool, we weren't properly setting up the Pool object, so build/install would always fail. --- src/virtManager/createpool.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/virtManager/createpool.py b/src/virtManager/createpool.py index 2580b29ad..0c4e4f89e 100644 --- a/src/virtManager/createpool.py +++ b/src/virtManager/createpool.py @@ -508,9 +508,12 @@ class vmmCreatePool(gobject.GObject): buildval = self.window.get_widget("pool-build").get_active() buildsen = self.window.get_widget("pool-build").get_property("sensitive") if buildsen and buildval: - return self.err.yes_no(_("Building a pool of this type will " + ret = self.err.yes_no(_("Building a pool of this type will " "format the source device. Are you " "sure you want to 'build' this pool?")) + if not ret: + return ret + self._pool = tmppool return True