[#389] house naming: container_name for all 21 GVM services (ukrrs-oam-gvm-*)
ci / audit (push) Successful in 23s

https://projects.knownelement.com/issues/389
This commit is contained in:
2026-09-05 07:27:05 -05:00
parent 70142d8f60
commit 2d75a3865f
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ if [ -n "$COMPOSE_FILES" ]; then
# Count top-level service keys (2-space indent under services:) and
# compare against the number of container_name: declarations.
svc_count=$(awk '/^services:/{f=1;next} f&&/^[^[:space:]]/{f=0} f&&/^[[:space:]]{2}[[:alnum:]_-]+:[[:space:]]*$/{c++} END{print c+0}' "$cf")
cn_count=$(grep -cE '^[[:space:]]*container_name:' "$cf" 2>/dev/null || echo 0)
cn_count=$(grep -cE '^[[:space:]]*container_name:' "$cf" 2>/dev/null || true)
if [ "${svc_count:-0}" -gt 0 ] && [ "$cn_count" -lt "$svc_count" ]; then
BAD=$((BAD + 1))
fi