From e097cc81c432d935d5c3f7cee928549cbf7591da Mon Sep 17 00:00:00 2001 From: Ryan Harper Date: Fri, 6 Nov 2015 10:11:33 -0600 Subject: [PATCH] Update network view 'done' to use updated model The model makes use of Networkdev objects, when the user is ready, done will extract the current configuration from the devices and emit the actions. Signed-off-by: Ryan Harper --- subiquity/ui/views/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subiquity/ui/views/network.py b/subiquity/ui/views/network.py index 84651025..fb7ffd48 100644 --- a/subiquity/ui/views/network.py +++ b/subiquity/ui/views/network.py @@ -138,8 +138,8 @@ class NetworkView(ViewPolicy): result.label) def done(self, result): - actions = [action.get() for _, action in - self.model.configured_interfaces.items()] + actions = [iface.action.get() for iface in + self.model.get_configured_interfaces()] actions += self.model.get_default_route() log.debug('Configured Network Actions:\n{}'.format( yaml.dump(actions, default_flow_style=False)))