]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 25 Mar 2026 14:22:46 +0000 (10:22 -0400)
commit8a8ee5a06d0e54aef47d0e8887c1905e2d0ff308
tree15899832ab5160e8dd67d9e3a5c1d785512dfe01
parent837916847f56f473514430008b567481be8b6559
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>
src/pybind/mgr/smb/resourcelib.py