Merge branch 'develop' into production
This commit is contained in:
commit
daf4e9e524
|
@ -76,8 +76,8 @@ class Command(BaseCommand):
|
||||||
if response.status_code != 200 or not isinstance(peers, list) or get_key(peers, ['error']):
|
if response.status_code != 200 or not isinstance(peers, list) or get_key(peers, ['error']):
|
||||||
raise InvalidResponseException("Could not get peers for {}".format(instance_name))
|
raise InvalidResponseException("Could not get peers for {}".format(instance_name))
|
||||||
# Get rid of peers that just say "null" and the instance itself
|
# Get rid of peers that just say "null" and the instance itself
|
||||||
# Also make sure to lowercase all instance names; otherwise there'll be some duplicates
|
# Also make sure to lowercase all instance names and remove duplicates
|
||||||
return [peer.lower() for peer in peers if peer and peer != instance_name]
|
return list(set([peer.lower() for peer in peers if peer and peer != instance_name]))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_statuses(instance_name: str):
|
def get_statuses(instance_name: str):
|
||||||
|
|
Loading…
Reference in a new issue