]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Fixes: #12286 radosgw-admin: after subuser modify print only once user info. 5286/head
authorguce <guce@h3c.com>
Sat, 11 Jul 2015 06:08:33 +0000 (14:08 +0800)
committerNathan Cutler <ncutler@suse.com>
Sun, 19 Jul 2015 16:11:33 +0000 (18:11 +0200)
commite4b55b398e68e870a7cf21276e63da2c4c6e3faa
tree62b5014fdd0bb48d646b02500f477d717d793d4f
parent45beb86423c3bd74dbafd36c6822e71ad9680e17
Fixes: #12286 radosgw-admin: after subuser modify print only once user info.
remove rgw_admin.cc OPT_SUBUSER_MODIFY, show_user_info code block.

switch (opt_cmd) {
...
case OPT_SUBUSER_MODIFY:
show_user_info(info, formatter);       //show first time (remove this)
break;
...
}

// output the result of a user operation
if (output_user_info) {
...
show_user_info(info, formatter);       //show second time
}

test fix:
before: after subuser modify print twice user info.
after changes, do the same procedure, print only once user info.

Signed-off-by: guce guce@h3c.com
(cherry picked from commit c604dd97fc179e5c2f640818c0f6e7cf99701947)
src/rgw/rgw_admin.cc