Skip to content

Commit 64f252c

Browse files
committed
radosgw-admin: allow 'sync group pipe modify' with existing user
Fixes: https://tracker.ceph.com/issues/68645 Signed-off-by: Casey Bodley <[email protected]>
1 parent 66bf56e commit 64f252c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rgw/rgw_admin.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10335,7 +10335,8 @@ int main(int argc, const char **argv)
1033510335

1033610336
if (!rgw::sal::User::empty(user)) {
1033710337
pipe->params.user = user->get_id();
10338-
} else if (pipe->params.mode == rgw_sync_pipe_params::MODE_USER) {
10338+
} else if (pipe->params.mode == rgw_sync_pipe_params::MODE_USER &&
10339+
pipe->params.user.empty()) {
1033910340
cerr << "ERROR: missing --uid for --mode=user" << std::endl;
1034010341
return EINVAL;
1034110342
}

0 commit comments

Comments
 (0)