diff options
author | Chris Patterson <cpatterson@microsoft.com> | 2022-01-31 16:35:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 15:35:10 -0600 |
commit | 902aa44e6f4d267b5a7a59abb463f7b22c8d14d8 (patch) | |
tree | 42f26da8d24abfda5ba452f8b7769ada126b68fe /cloudinit/log.py | |
parent | 0362abcd762d1bc3a359e7514113683b76d79352 (diff) | |
download | vyos-cloud-init-902aa44e6f4d267b5a7a59abb463f7b22c8d14d8.tar.gz vyos-cloud-init-902aa44e6f4d267b5a7a59abb463f7b22c8d14d8.zip |
sources/azure: refactor _report_ready_if_needed and _poll_imds (#1222)
Refactor _report_ready_if_needed() to work for both Savable PPS
and Runnable PPS:
* rename _report_ready_if_needed() to _report_ready_for_pps()
* return interface name from lease to support _poll_imds() behavior
without changing it.
* fixes an issue where reporting ready return value was silently
ignored for Savable PPS.
* add explicit handling for failure to obtain DHCP lease to
result in sources.InvalidMetaDataException.
Refactor _poll_imds():
* use _report_ready_for_pps() for reporting ready, removing this logic
to simplify loop logic.
* move netlink and vnetswitch out of while loop to simplify loop logic,
leaving only reprovision polling in loop.
* add explicit handling for failure to obtain DHCP lease and
retry in the next iteration.
Signed-off-by: Chris Patterson cpatterson@microsoft.com
Diffstat (limited to 'cloudinit/log.py')
0 files changed, 0 insertions, 0 deletions