]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/smb: add error handling & conversion hook to resourcelib
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 2 May 2024 20:28:46 +0000 (16:28 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 17 Jun 2024 15:16:59 +0000 (11:16 -0400)
commitec6e8b7e84b3b38da1590b2a199a4c298c128576
tree1bddeca84f3f1fa4864e7917261955d006a8ceea
parentb8f127cacdcb81e5e08cabbc9ed78f611a675c85
mgr/smb: add error handling & conversion hook to resourcelib

Add a method to supply the Resource instances with a callback that
can handle errors that occur during object construction from simplified
data. If the callback is not set, the exceptions are handled as usual.

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