From fbd07e0acea6f02fbcd35aff2ea2ed7b3cd2a28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Czern=C3=BD?= Date: Thu, 20 Jun 2024 10:47:43 +0200 Subject: [PATCH] M #-: Fix monitoring for Ubuntu2404 (#3118) For a small performance penalty, it solves error "can't modify frozen Array" (cherry picked from commit 3b3fe1ce4008abd8f7b4019dae7a8d85f75cc076) --- src/im_mad/remotes/lib/probe_db.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/im_mad/remotes/lib/probe_db.rb b/src/im_mad/remotes/lib/probe_db.rb index 2cf4e996af..8957361b79 100644 --- a/src/im_mad/remotes/lib/probe_db.rb +++ b/src/im_mad/remotes/lib/probe_db.rb @@ -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|