From 1706d3c6da2442b445b139caef0e72015ce5119c Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Mon, 21 Oct 2024 12:23:51 -0400 Subject: [PATCH] radosgw-admin: allow 'sync group pipe modify' with existing user Fixes: https://tracker.ceph.com/issues/68645 Signed-off-by: Casey Bodley (cherry picked from commit 64f252c24015df6e652601769cb6f6e5d4da10ca) --- src/rgw/rgw_admin.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 7bdd0544899..a0c0c46d439 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -10316,7 +10316,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; } -- 2.39.5