]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rgw/multisite: fix parsing of 'topic list' output 62706/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 7 Apr 2025 13:26:21 +0000 (09:26 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 7 Apr 2025 13:26:24 +0000 (09:26 -0400)
adjust the parsing to match changes from 3f0428a017cdf35b7290cf7836eb4baa4eb0e774

Fixes: https://tracker.ceph.com/issues/70729
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/test/rgw/rgw_multi/tests.py

index 17d2cc4f80e5bddc3be4da85a5de043340fe2f51..75d892a3fa6f693a51a1fb0a5550980000e986f5 100644 (file)
@@ -548,8 +548,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):