[skip ci](shards): fix issue #2116

Signed-off-by: SkyYang <mooncity.sky@163.com>
pull/2118/head
SkyYang 2020-04-25 22:51:17 +08:00
parent 777c36a0ac
commit c754182a6f
No known key found for this signature in database
GPG Key ID: 77948E8FD43FD573
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class StaticDiscovery(object):
def __init__(self, config, readonly_topo, **kwargs):
self.readonly_topo = readonly_topo
hosts = env.list('DISCOVERY_STATIC_HOSTS', [])
hosts = map(str.strip, env.list('DISCOVERY_STATIC_HOSTS', []))
self.port = env.int('DISCOVERY_STATIC_PORT', 19530)
self.hosts = [resolve_address(host, self.port) for host in hosts]