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

M #-: fix minor bug in flow watchdog

This commit is contained in:
Ruben S. Montero 2020-05-20 10:01:38 +02:00 committed by GitHub
commit 90de787485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,11 +98,14 @@ class ServiceWD
xml = Nokogiri::XML(Base64.decode64(content))
service_id = split_key[2].to_i
check = false
@mutex.synchronize do
next unless @services.include?(service_id)
check = @services.include?(service_id)
end
next unless check
node = xml.xpath('/HOOK_MESSAGE/VM/ID').text.to_i
state = xml.xpath('/HOOK_MESSAGE/STATE').text
lcm_state = xml.xpath('/HOOK_MESSAGE/LCM_STATE').text