diff options
author | Chris Patterson <cpatterson@microsoft.com> | 2022-01-28 14:38:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 13:38:22 -0600 |
commit | 1b095760b5b7b7d59da12878098de97e3cb9885c (patch) | |
tree | 1328b5e620906316a78c4b684e1fa310c6c88090 /CONTRIBUTING.rst | |
parent | c4e21c7278e839de6bb7fb9c5e34ea5a6114029f (diff) | |
download | vyos-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 'CONTRIBUTING.rst')
0 files changed, 0 insertions, 0 deletions