[virt-tools-list] [PATCH 03/10] Updated NetworkConfigScreen.get_selected_network() to return the network.

Darryl L. Pierce dpierce at redhat.com
Thu May 26 18:37:18 UTC 2011


Instead of returning the name, it returns the actual vmmNetwork object.
---
 src/virtManagerTui/configscreen.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/virtManagerTui/configscreen.py b/src/virtManagerTui/configscreen.py
index 61021e9..e997631 100644
--- a/src/virtManagerTui/configscreen.py
+++ b/src/virtManagerTui/configscreen.py
@@ -211,7 +211,8 @@ class NetworkListConfigScreen(ConfigScreen):
                 grid]
 
     def get_selected_network(self):
-        return self.__network_list.current()
+        uuid = self.__network_list.current()
+        return self.get_libvirt().get_network(uuid)
 
     def has_selectable_networks(self):
         return self.__has_networks
-- 
1.7.5.1




More information about the virt-tools-list mailing list