summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChris Patterson <cpatterson@microsoft.com>2022-01-20 16:34:22 -0500
committerGitHub <noreply@github.com>2022-01-20 15:34:22 -0600
commit6c8770f5336c8c74dc8208f50ab0a479363d1332 (patch)
tree7218c7560e900bd5693dfc1c3d9eae6c7279bd42 /templates
parent78079374ac2b9cb8ae74975c2009fd21d59c130a (diff)
downloadvyos-cloud-init-6c8770f5336c8c74dc8208f50ab0a479363d1332.tar.gz
vyos-cloud-init-6c8770f5336c8c74dc8208f50ab0a479363d1332.zip
sources/azure: unpack ret tuple in crawl_metadata() (#1194)
load_azure_ds_dir() always returns a tuple. Instead of saving this tuple as ret, expand it immediately as md, userdata_raw, cfg, files. This allows for more fine-grained passing of data before getting expanded later. - Update _should_reprovision methods to use cfg instead of tuple. - Update _should_reprovision methods to remove the ovf_md guard. This should be a safe refactor as the OVF is not required, and the config is initialized to an empty dict. In practice, a mount failure would have initialized ret anyways if the OVF was not found. If a mount failure wasn't seen and ret was None, this guard could be causing other failures by ignoring the PPS state that should be available from IMDS metadata. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Diffstat (limited to 'templates')
0 files changed, 0 insertions, 0 deletions