diff options
Diffstat (limited to 'cloudinit/sources')
-rwxr-xr-x | cloudinit/sources/DataSourceAzure.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py index 22435284..7134c95a 100755 --- a/cloudinit/sources/DataSourceAzure.py +++ b/cloudinit/sources/DataSourceAzure.py @@ -335,7 +335,7 @@ class DataSourceAzure(sources.DataSource): # the candidate list determines the path to take in order to get the # metadata we need. reprovision = False - ovf_is_accessible = True + ovf_is_accessible = False reprovision_after_nic_attach = False metadata_source = None ret = None @@ -368,9 +368,9 @@ class DataSourceAzure(sources.DataSource): ret = util.mount_cb(src, load_azure_ds_dir) # save the device for ejection later self.iso_dev = src - ovf_is_accessible = True else: ret = load_azure_ds_dir(src) + ovf_is_accessible = True metadata_source = src break except NonAzureDataSource: @@ -383,7 +383,6 @@ class DataSourceAzure(sources.DataSource): report_diagnostic_event( "%s was not mountable" % src, logger_func=LOG.debug ) - ovf_is_accessible = False empty_md = {"local-hostname": ""} empty_cfg = dict( system_info=dict(default_user=dict(name="")) |