From aab516da7f89310445be4e4fb61836084d2dac32 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 18 Apr 2012 15:45:09 -0700 Subject: [PATCH] rgw: allow subuser creation on radosgw-admin user create This fixes issue #2312: allow the creation of both user and a subuser in a single radosgw-admin command. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_admin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 692f2f83fec77..4c70feb31bedc 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -744,7 +744,7 @@ int main(int argc, char **argv) map::iterator iter = info.subusers.find(subuser); subuser_found = (iter != info.subusers.end()); - if (!subuser_found && opt_cmd != OPT_SUBUSER_CREATE) { + if (!subuser_found && opt_cmd != OPT_SUBUSER_CREATE && opt_cmd != OPT_USER_CREATE) { cerr << "subuser specified but was not found, aborting" << std::endl; return 1; } -- 2.39.5