From caf2edfc4335834d52088ab61b8608d0ee2bbb9b Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 20 Feb 2014 09:01:21 -0800 Subject: [PATCH] rgw: minor cleanup Reviewed-by: Sage Weil Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_swift.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_swift.cc b/src/rgw/rgw_swift.cc index c7e707a65f99..d9654a7608de 100644 --- a/src/rgw/rgw_swift.cc +++ b/src/rgw/rgw_swift.cc @@ -254,8 +254,8 @@ int RGWSwift::get_keystone_admin_token(std::string& token) RGWGetKeystoneAdminToken token_req(cct, &token_bl); token_req.append_header("Content-Type", "application/json"); JSONFormatter jf; + jf.open_object_section("token_request"); jf.open_object_section("auth"); - jf.open_object_section("auth"); // XXX: Workaround to have right Json object. jf.open_object_section("passwordCredentials"); encode_json("username", cct->_conf->rgw_keystone_admin_user, &jf); encode_json("password", cct->_conf->rgw_keystone_admin_password, &jf); -- 2.47.3