Skip to content

Commit 0ee82db

Browse files
authored
Merge pull request ceph#60415 from cbodley/wip-68645
radosgw-admin: allow 'sync group pipe modify' with existing user Reviewed-by: Soumya Koduri <[email protected]>
2 parents 12f401e + 64f252c commit 0ee82db

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
@@ -10339,7 +10339,8 @@ int main(int argc, const char **argv)
1033910339

1034010340
if (!rgw::sal::User::empty(user)) {
1034110341
pipe->params.user = user->get_id();
10342-
} else if (pipe->params.mode == rgw_sync_pipe_params::MODE_USER) {
10342+
} else if (pipe->params.mode == rgw_sync_pipe_params::MODE_USER &&
10343+
pipe->params.user.empty()) {
1034310344
cerr << "ERROR: missing --uid for --mode=user" << std::endl;
1034410345
return EINVAL;
1034510346
}

0 commit comments

Comments
 (0)