Merge ~j.w.baxter/cloud-init:append_files into cloud-init:master
Proposed by
James Baxter
Status: | Merged |
---|---|
Approved by: | Scott Moser |
Approved revision: | 21e0df9fa41564265bbbd2c5d6c8ece8889725d7 |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~j.w.baxter/cloud-init:append_files |
Merge into: | cloud-init:master |
Diff against target: |
48 lines (+18/-1) 2 files modified
cloudinit/config/cc_write_files.py (+6/-1) tests/unittests/test_handler/test_handler_write_files.py (+12/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Scott Moser | Approve | ||
Ryan Harper | Approve | ||
Review via email: mp+359975@code.launchpad.net |
Commit message
write_files: add support for appending to files.
Add 'append: true' to write_files entries to append 'content' to file
specified by 'path' key. This modifies the file open mode to append.
Description of the change
Adds the ability to append to files
To post a comment you must log in.
James,
Thanks for the patch here. I've an inline comment/suggestion to the code. Could you also add a unittest here:
tests/unittests /test_handler/ test_handler_ write_files. py