]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix wrong format of admin token request in Keystone v3.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 5 Feb 2016 12:33:03 +0000 (13:33 +0100)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 19 Feb 2016 20:16:35 +0000 (12:16 -0800)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_json_enc.cc

index 26a54a34c3fca6edbd80e5418d66d39ac22c8409..e7c6615cd20df8551ff3c2dba8073d2bdd800bb8 100644 (file)
@@ -1220,6 +1220,7 @@ void KeystoneAdminTokenRequestVer2::dump(Formatter * const f) const
 
 void KeystoneAdminTokenRequestVer3::dump(Formatter * const f) const
 {
+  f->open_object_section("token_request");
   f->open_object_section("auth");
     f->open_object_section("identity");
       f->open_array_section("methods");
@@ -1249,4 +1250,5 @@ void KeystoneAdminTokenRequestVer3::dump(Formatter * const f) const
       f->close_section();
     f->close_section();
   f->close_section();
+  f->close_section();
 }