1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

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

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

(cherry picked from commit 3b3fe1ce4008abd8f7b4019dae7a8d85f75cc076)
This commit is contained in:
Pavel Czerný 2024-06-20 10:47:43 +02:00 committed by Ruben S. Montero
parent fb3d0a82f6
commit fbd07e0ace
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

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|