mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 18:53:37 +00:00
72c05acd88
PROBLEM: When two Proxmox hosts have the same hostname (e.g., 'px1' on different networks), the auto-registration was matching by name and overwriting the first with the second. This has been a recurring issue (#104) with at least 3 prior fix attempts. ROOT CAUSE: The auto-register handler matched existing nodes by BOTH Host URL and Name. Matching by name is incorrect - different physical hosts can share hostnames. FIXES: 1. Remove name-based matching in auto-registration - match by Host URL only 2. Add disambiguateNodeName() to append IP when duplicate hostnames exist 3. Add regression tests to prevent this from breaking again Now when registering two hosts named 'px1': - First becomes: px1 - Second becomes: px1 (10.0.2.224) Both are stored as separate nodes with their own credentials.