M #-: Fix monitoring for Ubuntu2404 (#3118)

For a small performance penalty, it solves error "can't modify frozen Array"

(cherry picked from commit 3b3fe1ce40)
This commit is contained in:
Pavel Czerný authored and Ruben S. Montero committed 2024-06-20 10:48:39 +02:00
1 parent fb3d0a82f6
commit fbd07e0ace
1 file changed
+1 -1
+1 -1
View File
@@ -147,7 +147,7 @@ class VirtualMachineDB
# ----------------------------------------------------------------------
# check missing VMs
# ----------------------------------------------------------------------
uuids = @db.execute("SELECT uuid FROM #{@dataset}").flatten!
uuids = @db.execute("SELECT uuid FROM #{@dataset}").flatten
uuids ||= []
(uuids - monitor_ids).each do |uuid|