From 53a09a104f5e1c123dc701558da44addde878e96 Mon Sep 17 00:00:00 2001 From: gargsans-yb Date: Tue, 24 Dec 2024 11:54:54 +0000 Subject: [PATCH] [#25426]yugabyted: Fix `xcluster status` command. Summary: Striping the string of each replication_ids received from yb-admin. Jira: DB-14658 Test Plan: ./yb_build.sh --java-test 'org.yb.yugabyted.*' Reviewers: nikhil Reviewed By: nikhil Subscribers: yugabyted-dev, sgarg-yb Differential Revision: https://phorge.dev.yugabyte.com/D40883 --- bin/yugabyted | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/yugabyted b/bin/yugabyted index 6b74b5bb19a1..a60ee32491ee 100755 --- a/bin/yugabyted +++ b/bin/yugabyted @@ -9523,7 +9523,7 @@ class YBAdminProxy(object): return None matches = re.findall(r'\[(.*?)\]', out) - replication_ids = matches[0].split(',') + replication_ids = [replication_id.strip() for replication_id in matches[0].split(',')] return replication_ids