From 105dbc6badc7a4dc52b960e67e514b6d3efec68f Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 19 Nov 2019 10:50:08 -0800 Subject: [PATCH] rgw-admin: add delimiter to tags parsing Otherwise it will use '=' as a delimiter, and need to preserve it as part of the tag initially. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_admin.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 0cd5d80c80f4..7c68f405f8b1 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -3467,11 +3467,11 @@ int main(int argc, const char **argv) } else if (ceph_argparse_witharg(args, i, &val, "--storage-class", (char*)NULL)) { storage_class = val; } else if (ceph_argparse_witharg(args, i, &val, "--tags", (char*)NULL)) { - get_str_list(val, tags); + get_str_list(val, ",", tags); } else if (ceph_argparse_witharg(args, i, &val, "--tags-add", (char*)NULL)) { - get_str_list(val, tags_add); + get_str_list(val, ",", tags_add); } else if (ceph_argparse_witharg(args, i, &val, "--tags-rm", (char*)NULL)) { - get_str_list(val, tags_rm); + get_str_list(val, ",", tags_rm); } else if (ceph_argparse_witharg(args, i, &val, "--api-name", (char*)NULL)) { api_name = val; } else if (ceph_argparse_witharg(args, i, &val, "--zone-id", (char*)NULL)) { -- 2.47.3