From 46d57d651a87a39504e74b611a1c694742c74704 Mon Sep 17 00:00:00 2001 From: kappa Date: Sun, 8 Feb 2026 01:00:41 +0900 Subject: [PATCH] fix: Skip shared domains during server restore to avoid invalid slot warning Shared domains (with _shares key) have no server slots to restore, so they should be skipped early in the restore loop. Co-Authored-By: Claude Opus 4.6 --- haproxy_mcp/tools/configuration.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/haproxy_mcp/tools/configuration.py b/haproxy_mcp/tools/configuration.py index 611a0a3..8d532ea 100644 --- a/haproxy_mcp/tools/configuration.py +++ b/haproxy_mcp/tools/configuration.py @@ -37,6 +37,9 @@ def restore_servers_from_config() -> int: server_info_list: list[tuple[str, str]] = [] # For logging on failure for domain, slots in config.items(): + if "_shares" in slots: + continue + backend = get_domain_backend(domain) if not backend: continue