Updated NetworkConfigScreen.get_selected_network() to return the network.

Instead of returning the name, it returns the actual vmmNetwork object.
This commit is contained in:
Darryl L. Pierce 2011-05-26 14:37:18 -04:00 committed by Cole Robinson
parent 6356d5b8b7
commit 4ad93ce6e2

View File

@ -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