]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/smb: extract a cross_check_resource function from handler class
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 2 Jul 2025 17:30:14 +0000 (13:30 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 2 Jul 2025 20:28:11 +0000 (16:28 -0400)
commit5db0a0cc759fc321e7c1fe2c34ed0c91cab75fca
tree1e52a03c0455876806569dad11999b96e8e31665
parent51a098d9ee1f3f6b7ed68d35dc0903e6a53ea495
mgr/smb: extract a cross_check_resource function from handler class

Move the sequence of if-isinstance checks out of the class into a
function that can be called (and tested) on it's own. This prepares
for additional future refactoring of this area.

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