]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix rgw bucket policy IfExists position 15607/head
authoryuliyang <yuliyang@cmss.chinamobile.com>
Fri, 9 Jun 2017 22:10:03 +0000 (06:10 +0800)
committeryuliyang <yuliyang@cmss.chinamobile.com>
Sun, 11 Jun 2017 07:13:42 +0000 (15:13 +0800)
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
src/rgw/rgw_iam_policy.cc

index 574236101b26e08710b5227adc4db6e17a06d92a..843dca7a2de09cdb1dbd979e98351627234d5619 100644 (file)
@@ -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 << "}";
 }