]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fallback to default for empty get_file_contents values 68765/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 6 May 2026 08:49:49 +0000 (10:49 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 6 May 2026 09:00:11 +0000 (11:00 +0200)
commitcced7e5701beb6bf5f842ef08222f124cfaa980e
treed508616e0d8d32fdd1041984812f62d6b03f7f0b
parent277f43c7f9708450d9bd4c3c3c32eb31dcc36298
ceph-volume: fallback to default for empty get_file_contents values

With this change, get_file_contents() returns the default when
a file exists but reads as empty.
This avoids repeating fallback checks in callers.

Fixes: https://tracker.ceph.com/issues/76431
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/tests/util/test_system.py
src/ceph-volume/ceph_volume/util/system.py