Merge pull request #616 from mwhudson/network-timeout-fix
fix case where NIC does not get DHCP address
This commit is contained in:
commit
e718a4391d
|
@ -417,9 +417,12 @@ class NetworkController(BaseController):
|
||||||
if not dhcp_events:
|
if not dhcp_events:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
await asyncio.wait_for(
|
await asyncio.wait_for(
|
||||||
asyncio.wait({e.wait() for e in dhcp_events}),
|
asyncio.wait({e.wait() for e in dhcp_events}),
|
||||||
10)
|
10)
|
||||||
|
except asyncio.TimeoutError:
|
||||||
|
pass
|
||||||
|
|
||||||
for dev, v in dhcp_device_versions:
|
for dev, v in dhcp_device_versions:
|
||||||
dev.dhcp_events = {}
|
dev.dhcp_events = {}
|
||||||
|
|
Loading…
Reference in New Issue