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

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



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


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