This fixes issue #2312: allow the creation of both user
and a subuser in a single radosgw-admin command.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
map<string, RGWSubUser>::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;
}