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-admin: remove unused iterator and fix error message #8507

Merged
merged 2 commits into from Apr 11, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/rgw/rgw_admin.cc
Expand Up @@ -2293,7 +2293,6 @@ int main(int argc, char **argv)
} else if (ceph_argparse_witharg(args, i, &val, "--zone-new-name", (char*)NULL)) {
zone_new_name = val;
} else if (ceph_argparse_witharg(args, i, &val, "--endpoints", (char*)NULL)) {
list<string>::iterator iter;
get_str_list(val, endpoints);
} else if (ceph_argparse_witharg(args, i, &val, "--source-zone", (char*)NULL)) {
source_zone_name = val;
Expand Down Expand Up @@ -2453,7 +2452,7 @@ int main(int argc, char **argv)
case OPT_PERIOD_DELETE:
{
if (period_id.empty()) {
cerr << "missing realm name or id" << std::endl;
cerr << "missing period id" << std::endl;
return -EINVAL;
}
RGWPeriod period(period_id);
Expand Down