Skip to content

Commit

Permalink
get parachain id in list as string instead of int to prevent type mis…
Browse files Browse the repository at this point in the history
…match
  • Loading branch information
PierreBesson committed Sep 1, 2023
1 parent b5917c9 commit 9cabd27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/network_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ def list_parachains():

# retrieve the list of parachains for which we have collators in the cluster
collator_pods = list_collator_pods()
# If the paraId is not set on pod labels, we fallback to 0
# If the paraId is not set on pod labels, we fall back to 0
cluster_parachain_tuple_set = set(
map(lambda pod: (int(pod.metadata.labels.get('paraId', 0)), pod.metadata.labels.get('chain')), collator_pods))
map(lambda pod: (pod.metadata.labels.get('paraId', '0'), pod.metadata.labels.get('chain')), collator_pods))

parachains = {}
for cluster_parachain_tuple in cluster_parachain_tuple_set:
Expand Down

0 comments on commit 9cabd27

Please sign in to comment.