]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/restful: Decode the output of b64decode 26712/head
authorBrad Hubbard <bhubbard@redhat.com>
Fri, 1 Mar 2019 04:33:58 +0000 (14:33 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Fri, 1 Mar 2019 23:20:19 +0000 (09:20 +1000)
commitf00958f4a262c549e5ff0cda3e8a71d2bfa10dad
tree00c758a24542e5ebf658cb8759e7cd3e3afcec43
parent499bef6591bbb0405fe470e90494215c379e38ea
pybind/mgr/restful: Decode the output of b64decode

Need to decode the b64decode output before calling split.

b64decode("YWRtaW46NzYxMmJlMTEtYjJmZS00NTA5LTlhY2ItMjYzZGQwZjJmMjUx")
b'admin:7612be11-b2fe-4509-9acb-263dd0f2f251'
b64decode("YWRtaW46NzYxMmJlMTEtYjJmZS00NTA5LTlhY2ItMjYzZGQwZjJmMjUx").decode()
'admin:7612be11-b2fe-4509-9acb-263dd0f2f251'

Fixes: http://tracker.ceph.com/issues/38522
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/pybind/mgr/restful/decorators.py