Merge ~larsks/cloud-init:lp/1644064 into cloud-init:master
Proposed by
Lars Kellogg-Stedman
Status: | Merged |
---|---|
Merged at revision: | 721348a622a660b65acfdf7fdf53203b47f80748 |
Proposed branch: | ~larsks/cloud-init:lp/1644064 |
Merge into: | cloud-init:master |
Diff against target: |
122 lines (+53/-5) 4 files modified
cloudinit/atomic_helper.py (+11/-1) cloudinit/config/cc_set_passwords.py (+2/-1) cloudinit/util.py (+9/-1) tests/unittests/test_util.py (+31/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Scott Moser | Needs Fixing | ||
Review via email: mp+322309@code.launchpad.net |
Description of the change
util: teach write_file to default to existing file mode
On centos/
but cloud-init unilaterally sets file modes to 0644 when no explicit
mode is passed to util.write_file. With this patch, write_file will
by default check if the target file already exists, and if so will use
the mode of that file by default unless an explicit mode is passed by
the caller.
To post a comment you must log in.
PASSED: Continuous integration, rev:3cd3081fe69 7d9544b36ecd655 2442663da2374a /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 221/ /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- amd64/221 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- arm64/221 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- ppc64el/ 221 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- s390x/221 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=vm- i386/221
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 221/rebuild
https:/