diff options
-rwxr-xr-x | cloudinit/sources/DataSourceAzure.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py index d52c6a7f..93493fa0 100755 --- a/cloudinit/sources/DataSourceAzure.py +++ b/cloudinit/sources/DataSourceAzure.py @@ -498,6 +498,11 @@ class DataSourceAzure(sources.DataSource): self.fallback_interface, retries=10 ) + + # reset _fallback_interface so that if the code enters reprovisioning + # flow, it will force re-evaluation of new fallback nic. + self._fallback_interface = None + if not imds_md and not ovf_is_accessible: msg = 'No OVF or IMDS available' report_diagnostic_event(msg) |