]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/smb: reimplement part of the _search_resources function 67615/head
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 2 Mar 2026 21:09:16 +0000 (16:09 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 3 Mar 2026 15:55:45 +0000 (10:55 -0500)
commitd5f37cd591ae03100e1db4e9e79d7a50d0e1e4ab
tree4aa448bb19ff02034c9c8171881eea303de5cb59
parent875f6c3dd6cfcf5ed7780bd97ec328d40f6f0ee2
mgr/smb: reimplement part of the _search_resources function

Reimplement part of the _search_resources function to avoid using yet
another static mapping between the SMBResource type and it's partner
entry type which is one more place you forget to update when you
add a new type. Now, the type mapping is based on the matcher class
and the typ mapping function provided by the internal.py module.

Fixes: 5712016c2133870da3f704d8457358ad06efc87f
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/smb/handler.py