Do not write any config for a wlan device that has not been given a ESSID

See https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1623756
This commit is contained in:
Michael Hudson-Doyle 2016-09-15 21:29:03 +12:00
parent 85e9545768
commit 36967e2309
1 changed files with 10 additions and 9 deletions

View File

@ -119,7 +119,8 @@ class Networkdev():
result[self.ifname]['interfaces'] = self.probe_info.bond['slaves']
if self.iftype == 'wlan':
if self.essid is not None:
if self.essid is None:
return {}
aps = result[self.ifname]['access-points'] = {}
ap = aps[self.essid] = {
'mode': 'infrastructure',