]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/nfs: fix unintentional recursion
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 28 Feb 2022 20:43:47 +0000 (15:43 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 17 Mar 2022 14:03:48 +0000 (10:03 -0400)
commit3c502570bf96ab08886246eb249d182ad7287d7a
tree9c62a144e52d21e10e0d9695b12ad9b9fed5d022
parent448dd523b15776d3cb51ea71131fdb01a39aa4b9
mgr/nfs: fix unintentional recursion

The `exports` property of the ExportMgr exists to cache the exports
configuration found in the .nfs namespace. Using that property
within the property method is probably not intentional and is probably
only working due to the lucky construction of the _exports dict
immediately after the None check so that the _exports dict is returned
(and is a mutable type).

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit daa455cd168d62cd8fbcaba4d7aa79b56e68ef0d)
src/pybind/mgr/nfs/export.py