Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Preserve empty guest metadata slices

rcourtman01f8e9a69750
diff --git a/internal/config/guest_metadata.go b/internal/config/guest_metadata.go
index faf195271b..f086b76a69 100644
--- a/internal/config/guest_metadata.go
+++ b/internal/config/guest_metadata.go
@@ -37,10 +37,12 @@ func cloneGuestMetadata(meta *GuestMetadata) *GuestMetadata {
clone := *meta
if meta.Tags != nil {
- clone.Tags = append([]string(nil), meta.Tags...)
+ clone.Tags = make([]string, len(meta.Tags))
+ copy(clone.Tags, meta.Tags)
}
if meta.Notes != nil {
- clone.Notes = append([]string(nil), meta.Notes...)
+ clone.Notes = make([]string, len(meta.Notes))
+ copy(clone.Notes, meta.Notes)
}
return &clone
}