From: Yehuda Sadeh Date: Tue, 19 Nov 2019 18:50:08 +0000 (-0800) Subject: rgw-admin: add delimiter to tags parsing X-Git-Tag: v15.1.0~22^2~54 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=105dbc6badc7a4dc52b960e67e514b6d3efec68f;p=ceph.git 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 --- 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)) {