Skip to content

Commit

Permalink
B #6158: Fix filtering on host id when monitoring vcenter vms
Browse files Browse the repository at this point in the history
The patch correctly determines the corresponding OpenNebula vm id

(cherry picked from commit b2d3237)
  • Loading branch information
philipfreude authored and rsmontero committed Apr 9, 2024
1 parent f92e40b commit 2f8165f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/im_mad/remotes/lib/vcenter_cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ def vcenter_vms_state
"(DEPLOY_ID = '#{vm_ref.split('_')[0]}')]"
)

ids.select do |vm|
ids.select! do |vm|
hid = vm['HISTORY_RECORDS/HISTORY/HID']

if hid
hid.to_i == @host_id
hid.to_i == @hid
else
false
end
Expand Down

0 comments on commit 2f8165f

Please sign in to comment.