fix peer list
This commit is contained in:
parent
4e8c8d4054
commit
a9a4f87628
1 changed files with 4 additions and 1 deletions
|
@ -284,7 +284,10 @@ class Env:
|
||||||
return self.PD_ON
|
return self.PD_ON
|
||||||
|
|
||||||
def extract_peer_hubs(self):
|
def extract_peer_hubs(self):
|
||||||
return [hub.strip() for hub in self.default('PEER_HUBS', '').split(',')]
|
peer_hubs = self.default('PEER_HUBS', '')
|
||||||
|
if not peer_hubs:
|
||||||
|
return []
|
||||||
|
return [hub.strip() for hub in peer_hubs.split(',')]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def contribute_to_arg_parser(cls, parser):
|
def contribute_to_arg_parser(cls, parser):
|
||||||
|
|
Loading…
Reference in a new issue