]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: print dict-like IAM Policy element as a dict
authorKefu Chai <kchai@redhat.com>
Thu, 16 Nov 2017 04:34:58 +0000 (12:34 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 16 Nov 2017 05:08:57 +0000 (13:08 +0800)
commit8b178f28f78d81cbde59c99ff4cbe1e7157e7aa0
tree3d8face3d0aca772f6049605e9ea2821b17a4539
parent2a415f60eeb9c774a7be7137d70abba28275f5bc
rgw: print dict-like IAM Policy element as a dict

so they are printed like
{ Hello: World, Goodbye: [ Cruel, World ] }
instead of
[ Hello: World, Goodbye: [ Cruel, World ] ]

also, all of the print_dict() caller sites are protected by
`if (!foo.empty())`, so no need to check for empty.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/rgw_iam_policy.cc