]> 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>
Tue, 1 Mar 2022 15:11:18 +0000 (10:11 -0500)
commitdaa455cd168d62cd8fbcaba4d7aa79b56e68ef0d
tree58d214adfcef46b3869f96f58b4667585ea20fe5
parent4d09660dea5696e5085a75694968aafe9253f47a
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>
src/pybind/mgr/nfs/export.py