]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/smb: fix a resource error unpacking str instead of list
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 18 Jul 2025 14:23:31 +0000 (10:23 -0400)
committerAvan Thakkar <athakkar@redhat.com>
Thu, 27 Nov 2025 15:07:27 +0000 (20:37 +0530)
commit65d712f7e1f39859134a6be155a2f72cb52d8e18
tree4df46172c9cd9c671e604687faf00d2a1a874a39
parent1bace011f36acec2edb0e0a4c65c663a9194f72f
mgr/smb: fix a resource error unpacking str instead of list

Add special handling for the case where a string is passed instead of a
list. Without this fix a string will be converted into a list of single
letter items, something pretty much no one ever wants. Raise an
exception instead.

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