]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/smb: improve error handling when _customize_resource is wrong
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 30 Jun 2025 21:46:10 +0000 (17:46 -0400)
committerAdam King <adking@redhat.com>
Thu, 21 Aug 2025 18:13:15 +0000 (14:13 -0400)
commit4055afe0ce4914b528d7ce03181dd332633af814
treebca1616eb546f42a3814aadb4e7600b1cb22453b
parentef3e9ade170c9de19993db1c14a21beb23970056
mgr/smb: improve error handling when _customize_resource is wrong

While working on other changes I noticed that if _customize_resource
does not return a resource object (something fairly easy to do like
accidentally delete a line) the error it produces is somewhat hard
to debug. Check the return from the function returns a non-false
object to provide better error reporting.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 917609b23fa99c34d4734dd44b07e112caeb5b66)
src/pybind/mgr/smb/resourcelib.py