fix stupid crash

This commit is contained in:
Michael Hudson-Doyle 2018-05-04 10:31:36 +12:00
parent 54c74d8c52
commit 0a0af0842b
1 changed files with 2 additions and 2 deletions

View File

@ -416,11 +416,11 @@ class NetworkController(BaseController):
devs_to_down.append(dev)
tasks = []
if devs_to_down:
tasks.append([
tasks.extend([
('stop-networkd', BackgroundProcess(['systemctl', 'stop', 'systemd-networkd.service'])),
('down', DownNetworkDevices(self.observer.rtlistener, devs_to_down)),
])
tasks.append([
tasks.extend([
('apply', BackgroundProcess(['netplan', 'apply'])),
('timeout', WaitForDefaultRouteTask(30, self.network_event_receiver)),
])