mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-09 09:57:40 +03:00
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:
parent
6356d5b8b7
commit
4ad93ce6e2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user