]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/nfs: limit dependency of NFSRados object
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 27 Jan 2022 20:50:13 +0000 (15:50 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 23 Feb 2022 21:27:23 +0000 (16:27 -0500)
commitd94b63830d94f21ba276452844a46d21e084fb3f
tree1f1f1695c59667af8777d85a1fd070e76dccf9f8
parentb0d6bed71a291e8e4563660bebe391cb8a756e67
mgr/nfs: limit dependency of NFSRados object

Previously, the NFSRados object accepted the "Module" as the
first argument but only used the rados attribute (type rados.Rados).
It's better to limit the scope of types when reasonably possible
so we can see what the true dependencies are. So we restrict
NFSRados to accepting a rados.Rados as the argument.

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