network: fix check of wlan network state

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2023-03-20 09:19:56 +01:00
parent 2fc55b4363
commit 07db52efc8
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ class NetworkController(BaseNetworkController, SubiquityController):
if state == WLANSupportInstallState.INSTALLING:
self.pending_wlan_devices.add(dev)
return
elif state in [WLANSupportInstallState.FAILED.
elif state in [WLANSupportInstallState.FAILED,
WLANSupportInstallState.NOT_AVAILABLE]:
return
# WLANSupportInstallState.DONE falls through