12 lines
491 B
Bash
Executable File
12 lines
491 B
Bash
Executable File
#!/bin/sh
|
|
# Shows which container answers under which X-Instance-Id: the proof on the
|
|
# defense that the header values belong to different running processes, and
|
|
# which container a failover test actually stopped.
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
|
|
printf '%-12s %-14s %-8s %-16s %s\n' CONTAINER NAME STATE X-INSTANCE-ID IMAGE
|
|
sh scripts/api-instances.sh | while read -r id name state alias image; do
|
|
printf '%-12s %-14s %-8s %-16s %s\n' "$id" "$name" "$state" "$alias" "$image"
|
|
done
|