]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: ensure password is a string before encoding it 40522/head
authorKefu Chai <kchai@redhat.com>
Wed, 31 Mar 2021 11:09:56 +0000 (19:09 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 31 Mar 2021 11:35:07 +0000 (19:35 +0800)
commit2cd94293268116838c3ddcebdedde4fbd9cb93aa
tree9bc3721454c4fbb719fd2d8d86dceda42091afd5
parent6b6eddaa2d438396849e7fb3e043c7b74e6b904c
mgr/dashboard: ensure password is a string before encoding it

otherwise we have following failure:

AttributeError: 'bytes' object has no attribute 'encode'

this change is not cherry-picked from master, as master has dropped
python2 support.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/dashboard/services/access_control.py