Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: radosgw-admin dumps user info twice #5286

Merged
1 commit merged into from Jul 31, 2015
Merged

Commits on Jul 19, 2015

  1. Fixes: ceph#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 c604dd9)
    guce authored and smithfarm committed Jul 19, 2015
    Copy the full SHA
    e4b55b3 View commit details
    Browse the repository at this point in the history