se7enkings commented on a change in pull request #4349: fix culster_url which 
may be set as a list
URL: https://github.com/apache/pulsar/pull/4349#discussion_r286876862
 
 

 ##########
 File path: dashboard/django/collector.py
 ##########
 @@ -355,6 +355,8 @@ def fetch_stats():
         if cluster_name == 'global': continue
 
         cluster_url = get(args.serviceUrl, '/admin/v2/clusters/' + 
cluster_name)['serviceUrl']
+        if cluster_url.find(',')>=0:
+                cluster_url = cluster_url.split(',')[0]
 
 Review comment:
   import random

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to