]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Thu, 17 Mar 2022 14:03:24 +0000 (10:03 -0400)
commit0ae81108e252d0103abf280d9daf7a52eb21d372
treed6e63f8ac0c6cda103830617495650d2b2e66a18
parent63acd53a1d92799a4720c15c92e1998a567eea35
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>
(cherry picked from commit 88266144423e6876dc392bc6ea59e32393024323)
src/pybind/mgr/nfs/cluster.py
src/pybind/mgr/nfs/export.py
src/pybind/mgr/nfs/utils.py