summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-06-27 20:17:17 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-06-27 21:13:12 -0700
commit674bbabe8502c69513c80a77473aa2fc29d48e76 (patch)
treeaad0059c9d04e512f6ce52be0a7d7b921a8e1f0a
parent9d702e589444b9e9afa2737c077b280878773a8c (diff)
downloadceph-674bbabe8502c69513c80a77473aa2fc29d48e76.tar.gz
rgw: user param in access key is not manadatory
for json decoding Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_json_enc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc
index fb077f9aa8c..fc33120bd46 100644
--- a/src/rgw/rgw_json_enc.cc
+++ b/src/rgw/rgw_json_enc.cc
@@ -223,7 +223,7 @@ void RGWAccessKey::decode_json(JSONObj *obj) {
JSONDecoder::decode_json("secret_key", key, obj, true);
if (!JSONDecoder::decode_json("subuser", subuser, obj)) {
string user;
- JSONDecoder::decode_json("user", user, obj, true);
+ JSONDecoder::decode_json("user", user, obj);
int pos = user.find(':');
if (pos >= 0) {
subuser = user.substr(pos + 1);