Skip to content

Commit

Permalink
fix: Neighbourhood is treated a string in bee (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkobas2 authored Apr 13, 2024
1 parent ba00101 commit 8e78a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/bee/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ spec:
NEIGH=$(wget --header="Accept: text/plain" https://api.swarmscan.io/v1/network/neighborhoods/suggestion -q -O -);
printf 'swarmscan suggestion: %s\n' "${NEIGH}";
if [ ! -n "${NEIGH}" ] || [ $(expr match ${NEIGH} '[0,1]*$') == 0 ]; then echo 'bad neighborhood value ' "${NEIGH}" ; exit 1; fi;
printf 'target-neighborhood: %s\n' "${NEIGH}" >> /home/bee/.bee.yaml;
printf 'target-neighborhood: "%s"\n' "${NEIGH}" >> /home/bee/.bee.yaml;
echo 'node initialization done';
volumeMounts:
- name: config-file
Expand Down

0 comments on commit 8e78a1b

Please sign in to comment.