]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/nfs: clean up rados object naming code
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 27 Jan 2022 22:06:02 +0000 (17:06 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 23 Feb 2022 21:27:24 +0000 (16:27 -0500)
commit88266144423e6876dc392bc6ea59e32393024323
tree5fa1abb704b6c0530e0ee2497748bcb45d826a44
parentc51a6755b52954910512f804cde9e5255c1db9e7
mgr/nfs: clean up rados object naming code

The naming of rados objects used to store the nfs config was spread
all over the code, including inline f-strings, not-static methods,
etc.
This change unifies the naming by putting constant string prefixes
and name generating functions into the utils.py file.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/nfs/cluster.py
src/pybind/mgr/nfs/export.py
src/pybind/mgr/nfs/utils.py