mirror of
https://github.com/ceph/ceph
synced 2025-03-08 01:10:10 +00:00
rgw/rgw_admin.cc: remove twice check for 'object'
Remove twice checked 'object'. Put checks in alphabetic order to make double checks easier to catch. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
9f34cf5822
commit
30938f689c
@ -226,21 +226,20 @@ static void perm_to_str(uint32_t mask, char *buf, int len)
|
||||
static int get_cmd(const char *cmd, const char *prev_cmd, bool *need_more)
|
||||
{
|
||||
*need_more = false;
|
||||
if (strcmp(cmd, "user") == 0 ||
|
||||
strcmp(cmd, "subuser") == 0 ||
|
||||
strcmp(cmd, "key") == 0 ||
|
||||
if (strcmp(cmd, "bucket") == 0 ||
|
||||
strcmp(cmd, "buckets") == 0 ||
|
||||
strcmp(cmd, "bucket") == 0 ||
|
||||
strcmp(cmd, "caps") == 0 ||
|
||||
strcmp(cmd, "cluster") == 0 ||
|
||||
strcmp(cmd, "gc") == 0 ||
|
||||
strcmp(cmd, "key") == 0 ||
|
||||
strcmp(cmd, "log") == 0 ||
|
||||
strcmp(cmd, "object") == 0 ||
|
||||
strcmp(cmd, "pool") == 0 ||
|
||||
strcmp(cmd, "pools") == 0 ||
|
||||
strcmp(cmd, "log") == 0 ||
|
||||
strcmp(cmd, "usage") == 0 ||
|
||||
strcmp(cmd, "object") == 0 ||
|
||||
strcmp(cmd, "cluster") == 0 ||
|
||||
strcmp(cmd, "subuser") == 0 ||
|
||||
strcmp(cmd, "temp") == 0 ||
|
||||
strcmp(cmd, "caps") == 0 ||
|
||||
strcmp(cmd, "gc") == 0) {
|
||||
strcmp(cmd, "usage") == 0 ||
|
||||
strcmp(cmd, "user") == 0) {
|
||||
*need_more = true;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user