From: yuliyang Date: Fri, 9 Jun 2017 22:10:03 +0000 (+0800) Subject: rgw: fix rgw bucket policy IfExists position X-Git-Tag: v12.1.0~149^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6983eee563717599e2ae6bca3f4163fcd4fe11b2;p=ceph.git rgw: fix rgw bucket policy IfExists position Signed-off-by: yuliyang --- diff --git a/src/rgw/rgw_iam_policy.cc b/src/rgw/rgw_iam_policy.cc index 574236101b2..843dca7a2de 100644 --- a/src/rgw/rgw_iam_policy.cc +++ b/src/rgw/rgw_iam_policy.cc @@ -1164,10 +1164,11 @@ ostream& print_array(ostream& m, Iterator begin, Iterator end) { } ostream& operator <<(ostream& m, const Condition& c) { - m << "{ " << condop_string(c.op) << ": { " << c.key; + m << "{ " << condop_string(c.op); if (c.ifexists) { m << "IfExists"; } + m << ": { " << c.key; print_array(m, c.vals.cbegin(), c.vals.cend()); return m << "}"; }