]> 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)
committerAdam King <adking@redhat.com>
Wed, 6 Apr 2022 20:10:42 +0000 (16:10 -0400)
commita234d8184b7a9345f243427eea1d447cdf319508
tree17cf4855a440316c6c4012b8054e7c54797253fd
parent16a295e3948ac1c6020145f31d7df5400df6d38c
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