Commit a4f9f6c
committed
Fix NODE column in backups to show actual guest node
Related to discussion #577
When backups are stored on shared storage accessible from multiple nodes,
the backup polling code was incorrectly assigning the backup to whichever
node it was discovered on during the scan, rather than the node where the
VM/container actually resides.
This fix:
- Builds a lookup map of VMID -> actual node at the start of backup polling
- Uses this map to assign the correct node for guest backups (VMID > 0)
- Preserves existing behavior for host backups (VMID == 0)
- Falls back to the queried node if the guest is not found in the map
This ensures the NODE column accurately reflects which node hosts each
guest, matching the information displayed on the main page.1 parent 6fd1c85 commit a4f9f6c
1 file changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7735 | 7735 | | |
7736 | 7736 | | |
7737 | 7737 | | |
| 7738 | + | |
| 7739 | + | |
| 7740 | + | |
| 7741 | + | |
| 7742 | + | |
| 7743 | + | |
| 7744 | + | |
| 7745 | + | |
| 7746 | + | |
| 7747 | + | |
| 7748 | + | |
| 7749 | + | |
| 7750 | + | |
| 7751 | + | |
7738 | 7752 | | |
7739 | 7753 | | |
7740 | 7754 | | |
| |||
7828 | 7842 | | |
7829 | 7843 | | |
7830 | 7844 | | |
7831 | | - | |
| 7845 | + | |
| 7846 | + | |
7832 | 7847 | | |
| 7848 | + | |
| 7849 | + | |
| 7850 | + | |
| 7851 | + | |
| 7852 | + | |
| 7853 | + | |
7833 | 7854 | | |
7834 | 7855 | | |
7835 | 7856 | | |
| |||
0 commit comments