]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: convert _write_custom_conf_files to use write_new
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 6 Jun 2023 16:25:34 +0000 (12:25 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 6 Jun 2023 18:19:32 +0000 (14:19 -0400)
commit642985c6894f8f62a313cd70c915d066f9c53d6e
tree95383ca68e76f29e06e839e4dadf97dca370ea9d
parent300f5bfcb5dd16ba916951bab90c95a1b76d07f4
cephadm: convert _write_custom_conf_files to use write_new

We double checked the meaning of "w+" and it will open the file
read-write. Since the file is never read there's no real reason
to keep it that way so its OK to convert to `write_new`.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py