Skip to content

Commit

Permalink
Fix unique ID generation
Browse files Browse the repository at this point in the history
  • Loading branch information
brablc committed Nov 16, 2024
1 parent 618e7ca commit 24a33f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion swarm-alerter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ function check_nodes() {
if [[ -f $pending_file ]]; then
log_warn "Pending alert: $message"
else
tr -dc 'a-zA-Z0-9' </dev/urandom | head -c 32 >"$pending_file"
action="create"
appendix="is less than $SWARM_MANAGER_MIN $where"
tr -dc 'a-zA-Z0-9' </dev/urandom | head -c 32 >"$pending_file"
unique_id=$(cat "$pending_file")
fi
else
if [[ -f $pending_file ]]; then
Expand Down

0 comments on commit 24a33f5

Please sign in to comment.