summaryrefslogtreecommitdiff
path: root/tools/build-on-openbsd
diff options
context:
space:
mode:
authorChris Patterson <cpatterson@microsoft.com>2022-01-28 14:38:22 -0500
committerGitHub <noreply@github.com>2022-01-28 13:38:22 -0600
commit1b095760b5b7b7d59da12878098de97e3cb9885c (patch)
tree1328b5e620906316a78c4b684e1fa310c6c88090 /tools/build-on-openbsd
parentc4e21c7278e839de6bb7fb9c5e34ea5a6114029f (diff)
downloadvyos-cloud-init-1b095760b5b7b7d59da12878098de97e3cb9885c.tar.gz
vyos-cloud-init-1b095760b5b7b7d59da12878098de97e3cb9885c.zip
sources/azure: refactor _should_reprovision[_after_nic_attach]() logic (#1206)
Consolidate _should_reprovision_after_nic_attach() with _should_reprovision() into the following: _write_reprovision_marker() to write provisioning marker for reboot-during-provisioning case. PPSType enum and _determine_pps_type() for determining which to provisioning mode, if any, we're running under. PPSType.UNKNOWN is when the reprovisioning marker is found and we do not have the context to know what the original mode was. In this scenario, we must resort to polling for reprovision data. Tests: Introduce a simple data source fixture to for fine-grain control of mocking with pytest without unittest. Migrate relevant _should_reprovision() tests into a combination of TestDeterminePPSTypeScenarios cases. Signed-off-by: Chris Patterson cpatterson@microsoft.com
Diffstat (limited to 'tools/build-on-openbsd')
0 files changed, 0 insertions, 0 deletions