]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: use explicit to_string() overload for boost::string_ref
authorCasey Bodley <cbodley@redhat.com>
Tue, 7 May 2019 18:08:25 +0000 (14:08 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 7 May 2019 18:08:35 +0000 (14:08 -0400)
Fixes: http://tracker.ceph.com/issues/39611
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_json_enc.cc

index 5b58f1117a479f252e86952b117ab16106d7f0e4..24211399acf1dff620409e685645222e0d606149 100644 (file)
@@ -1528,10 +1528,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", ::to_string(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();
 }
@@ -1547,9 +1547,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", ::to_string(conf.get_admin_password()), f);
           f->close_section();
         f->close_section();
@@ -1557,12 +1557,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();