Skip to content

Commit

Permalink
Write to .pool.$pool.servers, since there's a subkey expected there
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan971 committed Nov 22, 2024
1 parent 158905b commit f477b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/watch-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ while true; do
pools_with_cluster=$(jq -r ".pools | to_entries[] | select(.value.servers == [ \"dnssrv:$cluster_dnssrv\" ]) | .key" "$conf_epoch_file")
cluster_ipports_array=$(jq -c '[.[] | (.ip + ":" + (.port|tostring))]' "$cluster_file")
for pool in $pools_with_cluster; do
if ! jq_i ".pools.$pool = $cluster_ipports_array" "$conf_epoch_file"; then
if ! jq_i ".pools.$pool.servers = $cluster_ipports_array" "$conf_epoch_file"; then
successful_lookups="false"
fi
done
Expand Down

0 comments on commit f477b4f

Please sign in to comment.