]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_rest_s3: use formatter->dump_bool
authorAbhishek Lekshmanan <abhishek@suse.com>
Wed, 16 Oct 2019 10:56:14 +0000 (12:56 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 3 Feb 2020 16:53:34 +0000 (17:53 +0100)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_rest_s3.cc

index 186809926189a54d8101909aa8723812c21e7a8f..347d58faf7eb5735b931338146cdd3134aa7d2f6 100644 (file)
@@ -4177,7 +4177,7 @@ void RGWGetBucketPolicyStatus_ObjStore_S3::send_response()
   // mentions TRUE and FALSE, but boto/aws official clients seem to want lower
   // case which is returned by AWS as well; so let's be bug to bug compatible
   // with the API
-  s->formatter->dump_string("IsPublic", isPublic ? "true" : "false");
+  s->formatter->dump_bool("IsPublic", isPublic);
   s->formatter->close_section();
   rgw_flush_formatter_and_reset(s, s->formatter);