summaryrefslogtreecommitdiff
path: root/cloudinit/user_data.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2023-02-09 15:50:33 -0700
committerGitHub <noreply@github.com>2023-02-09 15:50:33 -0700
commit55686b977570a6de69bef51c1e1a9d452333995d (patch)
tree0b36881db29374d18ac7728b348fbb229147455f /cloudinit/user_data.py
parentb923a1c4fe740e9142d2c16b269d692a69919c0d (diff)
downloadcloud-init-git-55686b977570a6de69bef51c1e1a9d452333995d.tar.gz
cli: schema also validate vendordata*.
cloud-init schema --annotate now walks any valid user-data, vendor-data and vendor2-data to report whether any of these cloud-config files provide invalid or deprecated schema values. Also, fix a bug in nested mapping annotations to properly report the full nested indexed schema path. The following now can be annotated without KeyErrors: users: - default - lock-passwd: false name: root
Diffstat (limited to 'cloudinit/user_data.py')
-rw-r--r--cloudinit/user_data.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/cloudinit/user_data.py b/cloudinit/user_data.py
index 51e4cd63..3336b23d 100644
--- a/cloudinit/user_data.py
+++ b/cloudinit/user_data.py
@@ -166,7 +166,6 @@ class UserDataProcessor:
# TODO(harlowja): Should this be happening, shouldn't
# the part header be modified and not the base?
_replace_header(base_msg, CONTENT_TYPE, ctype)
-
self._attach_part(append_msg, part)
def _attach_launch_index(self, msg):