]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/smb: add resource construction error handling exception
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 2 May 2024 20:32:35 +0000 (16:32 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 17 Jun 2024 15:16:59 +0000 (11:16 -0400)
commit28dda2d9dffe09d361fb91cc7ee73bc684a8bb0b
tree84985619699aa77b0c26f0435328eaa82c19414e
parentec6e8b7e84b3b38da1590b2a199a4c298c128576
mgr/smb: add resource construction error handling exception

Use error hook function to wrap plain ValueError instances to an
InvalidResourcError. This error retains the simplified data being
(re)constructed into an object and thus will be used later to generate
proper error results.

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