]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rgw/multisite: fix parsing of 'topic list' output 62534/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 7 Apr 2025 13:26:21 +0000 (09:26 -0400)
committerYuval Lifshitz <ylifshit@ibm.com>
Tue, 22 Apr 2025 14:29:22 +0000 (14:29 +0000)
adjust the parsing to match changes from 3f0428a017cdf35b7290cf7836eb4baa4eb0e774

Fixes: https://tracker.ceph.com/issues/70729
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit cb908adcb294e4ef031204f97844c356743dcc19)

src/test/rgw/rgw_multi/tests.py

index 0619d7550996412b18ca24da67ebd79ab24c077d..e9902aead52aa0c887fc840d57ac8e6781f9efa5 100644 (file)
@@ -518,8 +518,7 @@ def get_topics(zone):
     """
     cmd = ['topic', 'list'] + zone.zone_args()
     topics_json, _ = zone.cluster.admin(cmd, read_only=True)
-    topics = json.loads(topics_json)
-    return topics['topics']
+    return json.loads(topics_json)
 
 
 def create_topic_per_zone(zonegroup_conns, topics_per_zone=1):