mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 19:23:31 +00:00
debug: add logging to diagnose PMG backup detection issue #359
Added console.log statements to understand why PMG backups with VMID=0 are still showing as LXC in v4.14.0. This will help identify: - What data type vmid is (string vs number) - What backup type is being sent - Whether the checks are being triggered
This commit is contained in:
@@ -200,6 +200,18 @@ const UnifiedBackups: Component = () => {
|
||||
// Determine the display type based on VMID and backup type
|
||||
// VMID 0 = host config backup (e.g. PMG)
|
||||
let displayType: GuestType;
|
||||
|
||||
// Debug logging for PMG backup detection
|
||||
if (backup.vmid === '0' || backup.vmid === 0 || parseInt(backup.vmid) === 0) {
|
||||
console.log('PBS backup with VMID=0 detected:', {
|
||||
vmid: backup.vmid,
|
||||
vmidType: typeof backup.vmid,
|
||||
backupType: backup.backupType,
|
||||
instance: backup.instance,
|
||||
comment: backup.comment
|
||||
});
|
||||
}
|
||||
|
||||
if (parseInt(backup.vmid) === 0 || backup.backupType === 'host') {
|
||||
displayType = 'Host';
|
||||
} else if (backup.backupType === 'vm' || backup.backupType === 'VM') {
|
||||
@@ -255,6 +267,19 @@ const UnifiedBackups: Component = () => {
|
||||
|
||||
// Determine the display type based on backup.type and VMID
|
||||
let displayType: GuestType;
|
||||
|
||||
// Debug logging for PMG backup detection in storage backups
|
||||
if (backup.vmid === 0) {
|
||||
console.log('Storage backup with VMID=0 detected:', {
|
||||
vmid: backup.vmid,
|
||||
vmidType: typeof backup.vmid,
|
||||
type: backup.type,
|
||||
volid: backup.volid,
|
||||
notes: backup.notes,
|
||||
storage: backup.storage
|
||||
});
|
||||
}
|
||||
|
||||
// Check for host backups - VMID 0 or type 'host' (for PMG/PVE host configs)
|
||||
if (backup.vmid === 0 || backup.type === 'host') {
|
||||
displayType = 'Host';
|
||||
|
||||
Reference in New Issue
Block a user