]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: add unlink_file function
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 18 Nov 2023 18:57:48 +0000 (13:57 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 2 Jan 2024 14:30:21 +0000 (09:30 -0500)
commitd942a1b44a61580feef2d0add90f8b763019ee9f
treeba24f2b0e2e9c6628a97f12b62bdb2116cd80ebb
parent77cbbd614872bbad2e84efe9f87ecc6de6bb4d39
cephadm: add unlink_file function

Add the unlink_file function to file_utils. This fills in a gap between
python 3.6 and features provided in pathlib.Path in later versions of
python. Adds an option to ignore all errors for good measure.

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