From 9cabd276fac95a18eeb4a5564c31b24ff6210ff5 Mon Sep 17 00:00:00 2001 From: Pierre Besson Date: Fri, 1 Sep 2023 18:50:07 +0200 Subject: [PATCH] get parachain id in list as string instead of int to prevent type mismatch --- app/lib/network_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/network_utils.py b/app/lib/network_utils.py index 9e77b3e..868e25d 100644 --- a/app/lib/network_utils.py +++ b/app/lib/network_utils.py @@ -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: