summaryrefslogtreecommitdiff
path: root/tools/hook-dhclient
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2018-10-26 03:49:57 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-10-26 03:49:57 +0000
commitdc0be9c56f78537f1808934d26f5aa0868ae7842 (patch)
tree53caf37637bf79f5c93683bfe87ec85008b9bc1b /tools/hook-dhclient
parent532ff0f0a4f12225d5785bc98d7a4528e0c779d6 (diff)
downloadvyos-cloud-init-dc0be9c56f78537f1808934d26f5aa0868ae7842.tar.gz
vyos-cloud-init-dc0be9c56f78537f1808934d26f5aa0868ae7842.zip
instance-data: fallback to instance-data.json if sensitive is absent.
On cloud-init upgrade path from 18.3 to 18.4 cloud-init changed how instance-data is written. Cloud-init changes instance-data.json from root read-only to redacted world-readable content, and provided a separate unredacted instance-data-sensitive.json which is read-only root. Since instance-data is only rewritten from cache on reboot, the query and render tools needed fallback to use the 'old' instance-data.json if the new sensitive file isn't yet present. This avoids error messages from tools about an absebt /run/instance-data-sensitive.json file. LP: #1798189
Diffstat (limited to 'tools/hook-dhclient')
0 files changed, 0 insertions, 0 deletions