You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/05/23 10:25:58 UTC

[GitHub] [pulsar] se7enkings commented on a change in pull request #4349: fix culster_url which may be set as a list

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:
users@infra.apache.org


With regards,
Apache Git Services