From: Casey Bodley Date: Mon, 21 Oct 2024 16:23:51 +0000 (-0400) Subject: radosgw-admin: allow 'sync group pipe modify' with existing user X-Git-Tag: v20.0.0~575^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=64f252c24015df6e652601769cb6f6e5d4da10ca;p=ceph.git radosgw-admin: allow 'sync group pipe modify' with existing user Fixes: https://tracker.ceph.com/issues/68645 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index b00dfaa1ec51..f9aebc1c782f 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -10335,7 +10335,8 @@ next: if (!rgw::sal::User::empty(user)) { pipe->params.user = user->get_id(); - } else if (pipe->params.mode == rgw_sync_pipe_params::MODE_USER) { + } else if (pipe->params.mode == rgw_sync_pipe_params::MODE_USER && + pipe->params.user.empty()) { cerr << "ERROR: missing --uid for --mode=user" << std::endl; return EINVAL; }