]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: use 0o600 as the default mode for write_new
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 6 Jun 2023 17:24:37 +0000 (13:24 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 6 Jun 2023 18:31:19 +0000 (14:31 -0400)
commitb76132035be9383dafba382d0291da4068bfa94e
treeba2d2b16b31a1d2299ce42566b6cfd70aeee4e10
parent6ec5a5ead36a79ce331b6943296c401feea7a896
cephadm: use 0o600 as the default mode for write_new

Add a constant DEFAULT_MODE of `0o600`, and make it the default of
the perms argument to write_new. This reduces a lot of code since
0o600 is the majority of the permissions used. Other cases can continue
to pass None to indicate no particular permissions are desired.

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