]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: use explicit to_string() overload for boost::string_ref 31650/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 7 May 2019 18:08:25 +0000 (14:08 -0400)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 15 Nov 2019 17:07:41 +0000 (18:07 +0100)
Fixes: http://tracker.ceph.com/issues/39611
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 04c326795d2afe63c679f2542565763fee6acc09)

Conflicts:
    src/rgw/rgw_json_enc.cc
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
src/rgw/rgw_json_enc.cc

index 7302ef184adf47991e81d8aa8d972e9c1d53447a..b9a2ed26bfc7405b3e6e257b8fcc63a2e3920e5f 100644 (file)
@@ -1532,10 +1532,10 @@ void rgw::keystone::AdminTokenRequestVer2::dump(Formatter* const f) const
   f->open_object_section("token_request");
     f->open_object_section("auth");
       f->open_object_section("passwordCredentials");
-        encode_json("username", to_string(conf.get_admin_user()), f);
+        encode_json("username", ::to_string(conf.get_admin_user()), f);
         encode_json("password", conf.get_admin_password(), f);
       f->close_section();
-      encode_json("tenantName", to_string(conf.get_admin_tenant()), f);
+      encode_json("tenantName", ::to_string(conf.get_admin_tenant()), f);
     f->close_section();
   f->close_section();
 }
@@ -1551,9 +1551,9 @@ void rgw::keystone::AdminTokenRequestVer3::dump(Formatter* const f) const
         f->open_object_section("password");
           f->open_object_section("user");
             f->open_object_section("domain");
-              encode_json("name", to_string(conf.get_admin_domain()), f);
+              encode_json("name", ::to_string(conf.get_admin_domain()), f);
             f->close_section();
-            encode_json("name", to_string(conf.get_admin_user()), f);
+            encode_json("name", ::to_string(conf.get_admin_user()), f);
             encode_json("password", conf.get_admin_password(), f);
           f->close_section();
         f->close_section();
@@ -1561,12 +1561,12 @@ void rgw::keystone::AdminTokenRequestVer3::dump(Formatter* const f) const
       f->open_object_section("scope");
         f->open_object_section("project");
           if (! conf.get_admin_project().empty()) {
-            encode_json("name", to_string(conf.get_admin_project()), f);
+            encode_json("name", ::to_string(conf.get_admin_project()), f);
           } else {
-            encode_json("name", to_string(conf.get_admin_tenant()), f);
+            encode_json("name", ::to_string(conf.get_admin_tenant()), f);
           }
           f->open_object_section("domain");
-            encode_json("name", to_string(conf.get_admin_domain()), f);
+            encode_json("name", ::to_string(conf.get_admin_domain()), f);
           f->close_section();
         f->close_section();
       f->close_section();