Skip to content

cc_write_files: Improve schema.#1460

Merged
blackboxsw merged 2 commits into
canonical:mainfrom
aciba90:cc_write_files_improve_schema
May 17, 2022
Merged

cc_write_files: Improve schema.#1460
blackboxsw merged 2 commits into
canonical:mainfrom
aciba90:cc_write_files_improve_schema

Conversation

@aciba90
Copy link
Copy Markdown
Contributor

@aciba90 aciba90 commented May 17, 2022

Allow text/plain in write_files.encoding.

Proposed Commit Message

cc_write_files: Improve schema.

Allow `text/plain` in write_files.encoding.

Additional Context

Test Steps

Checklist:

  • My code follows the process laid out in the documentation
  • I have updated or added any unit tests accordingly
  • I have updated or added any documentation accordingly

Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirm failure prior to this branch and expected fix after

# BEFORE
2022-05-17 20:35:35,184 - schema.py[WARNING]: Invalid cloud-config provided:
2022-05-17 20:35:35,198 - cc_write_files.py[WARNING]: Unknown encoding type text/plain, assuming text/plain
# After upgrade

root@mon:~# cloud-init schema --system
Valid cloud-config: system userdata
root@mon:~# grep WARN /var/log/cloud-init.log 
root@mon:~# 

@blackboxsw blackboxsw merged commit 02db659 into canonical:main May 17, 2022
@aciba90 aciba90 deleted the cc_write_files_improve_schema branch May 23, 2022 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants