🐛: garage_bucket was using dotted addresses which can’t be supported by Munin-Client
This fixes it by reordering bucket names when they contain a
This commit is contained in:
@@ -6,7 +6,7 @@ HEADER="Authorization: Bearer ${BEARER}"
|
||||
# Create associative array
|
||||
declare -A BUCKETS=()
|
||||
|
||||
API_BUCKETS_JSON=$(curl -s -H "${HEADER}" "http://[::1]:3903/v1/bucket?list" | jq -r '.[] | .id + "," + .globalAliases[0]')
|
||||
API_BUCKETS_JSON=$(curl -s -H "${HEADER}" "http://[::1]:3903/v1/bucket?list" | jq -r '.[] | .id + "," + (if (.globalAliases[0]|test("\\.")) then .globalAliases[1] else .globalAliases[0] end)')
|
||||
|
||||
# Populate associative array
|
||||
for bucket in ${API_BUCKETS_JSON}
|
||||
|
Reference in New Issue
Block a user