summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2023-05-12 11:29:15 -0600
committerGitHub <noreply@github.com>2023-05-12 11:29:15 -0600
commit73f34575da4f99a376998516a13c3a79cc640ae3 (patch)
tree06f396d4fcda64ad8cb4476538b50d524c59a2b9 /tools
parent9f8450368c2ae713de0a2308f5d3cb73de5b39f2 (diff)
downloadcloud-init-git-73f34575da4f99a376998516a13c3a79cc640ae3.tar.gz
schema: read_cfg_paths call init.fetch to lookup /v/l/c/instance
Fix cloud-init schema --system being unable to find merged userdata stored at /var/lib/cloud/instance/cloud_config.txt. Init.paths.get_ipath only has visibility to merged cloud config in /var/lib/cloud/<instance_id>/cloud-config.txt after fetching the existing cached datasource which provides instance-id from metadata in order to determine the unique instance-id which represents the path to the cloud-config.txt. To support reuse of read_cfg_paths helper function, add an optional parameter fetch_existing_datasource which indicates whether reading the existing datasource is necessary for this helper function. cloud-init schema --system calls read_cfg_paths providing fetch_existing_datasource="trust" prior to calls to paths.get_ipath().
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions